This commit is contained in:
sam 2024-03-13 17:03:18 +01:00
commit 97a64296cd
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
28 changed files with 2288 additions and 0 deletions

8
tests/conftest.py Normal file
View 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
View file

@ -0,0 +1,8 @@
import pytest
from foxnouns import hello
@pytest.mark.asyncio
async def test_hello():
assert (await hello()) == "Hello world!"