#!/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(): # ...