forked from teamhide/fastapi-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install pytest/pytest-asyncio and add test templates
- Loading branch information
Showing
7 changed files
with
280 additions
and
183 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
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.
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,16 @@ | ||
import pytest | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_get_user_list(): | ||
... | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_create_user(): | ||
... | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_is_admin(): | ||
... |