Skip to content

Commit

Permalink
Install pytest/pytest-asyncio and add test templates
Browse files Browse the repository at this point in the history
  • Loading branch information
teamhide committed Aug 30, 2022
1 parent 06a91a1 commit 71193ef
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 183 deletions.
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "*"
pytest-asyncio = "*"

[packages]
alembic = "*"
Expand Down
445 changes: 262 additions & 183 deletions Pipfile.lock

Large diffs are not rendered by default.

Empty file added tests/__init__.py
Empty file.
Empty file added tests/app/__init__.py
Empty file.
Empty file added tests/app/user/__init__.py
Empty file.
Empty file.
16 changes: 16 additions & 0 deletions tests/app/user/services/test_user.py
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():
...

0 comments on commit 71193ef

Please sign in to comment.