blob: 2320f8bec4f4e27560f93aabfe0bbf811e40a650 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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():
# ...
|