git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dummy_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dummy_test.py')
-rw-r--r--tests/dummy_test.py44
1 files changed, 44 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():
+# ...