-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds test examples REFS #6\n\ni've started an effort to formali…
…se the stack with the realisation of #70\n\nthis setsup configtest where the fastapi test client is created and it can\nget the root endpoint and validate that it returns a proper body, the effort\nwill be to maintain a set of tests for everything the base framework manages\n\nwe will need to ensure that eject #55 can rewrite the namespaces so other\nprojects are able to keep working on the tests centric to their applicaiton
- Loading branch information
Showing
5 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
""" | ||
""" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
""" | ||
""" | ||
import pytest | ||
|
||
@pytest.fixture(scope="module") | ||
def test_client(): | ||
from fastapi.testclient import TestClient | ||
from labs.api import app | ||
return TestClient(app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from fastapi.testclient import TestClient | ||
from fastapi.security import OAuth2PasswordRequestForm | ||
|
||
from labs.schema.auth import Token | ||
|
||
def test_signup(): | ||
assert 1 == 1 | ||
|
||
|
||
def test_login(): | ||
assert 1 == 1 |