init
This commit is contained in:
commit
97a64296cd
28 changed files with 2288 additions and 0 deletions
8
tests/conftest.py
Normal file
8
tests/conftest.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import pytest_asyncio
|
||||
|
||||
|
||||
@pytest_asyncio.fixture(scope="session", autouse=True)
|
||||
async def setup():
|
||||
print("hello from setup!")
|
||||
yield
|
||||
print("bye from setup!")
|
8
tests/test_hello.py
Normal file
8
tests/test_hello.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import pytest
|
||||
|
||||
from foxnouns import hello
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_hello():
|
||||
assert (await hello()) == "Hello world!"
|
Loading…
Add table
Add a link
Reference in a new issue