diff options
author | mail_redacted_for_web | 2025-08-20 09:59:42 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2025-08-20 09:59:42 +0200 |
commit | 865e3aabe2d1f46a9c3692e8d51eb4379d7cc970 (patch) | |
tree | 86cc747bf72a802f185dd517708d6f70b895d0a1 /tests | |
download | python-skeleton-865e3aabe2d1f46a9c3692e8d51eb4379d7cc970.tar.bz2 |
Initial Commit
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dummy_test.py | 44 | ||||
l--------- | tests/project_dummy | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/tests/dummy_test.py b/tests/dummy_test.py new file mode 100644 index 0000000..2320f8b --- /dev/null +++ b/tests/dummy_test.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python3 +"""Test some shtuffs.""" + +import pytest + +from project_dummy import db, hemlo_world + + +@pytest.fixture +def test_fix_to_true(): + """A fixture.""" + return True + + +def test_assert_true(): + """A simple assertion.""" + assert True + + +def test_hello_world(): + """Just check that we can import and run this.""" + assert isinstance(hemlo_world.hemlo(), str) + + +def test_db(): + """A string.""" + assert isinstance(db.Db().dbt, str) + db.Db().print_db() + + +if __name__ == '__main__': + hemlo_world.hemlo() + + +# Some random things +# Async fixtures and tests: +# +# @pytest.mark.asyncio +# async def test_async_part(): +# ... +# +# @pytest.fixture +# async def create_x(): +# ... diff --git a/tests/project_dummy b/tests/project_dummy new file mode 120000 index 0000000..d758124 --- /dev/null +++ b/tests/project_dummy @@ -0,0 +1 @@ +../project_dummy
\ No newline at end of file |