CICD/app/other_api/doodad/interface_test.py

18 lines
420 B
Python
Raw Permalink Normal View History

2019-05-19 16:56:56 +02:00
from pytest import fixture
from .model import Doodad
from .interface import DoodadInterface
@fixture
def interface() -> DoodadInterface:
2019-08-03 18:55:38 +02:00
return DoodadInterface(doodad_id=1, name="Test doodad", purpose="Test purpose")
2019-05-19 16:56:56 +02:00
def test_DoodadInterface_create(interface: DoodadInterface):
assert interface
def test_DoodadInterface_works(interface: DoodadInterface):
doodad = Doodad(**interface)
assert doodad