CICD/app/other_api/doodad/interface_test.py
2019-05-19 10:56:56 -04:00

20 lines
434 B
Python

from pytest import fixture
from .model import Doodad
from .interface import DoodadInterface
@fixture
def interface() -> DoodadInterface:
return DoodadInterface(
doodad_id=1, name='Test doodad', purpose='Test purpose'
)
def test_DoodadInterface_create(interface: DoodadInterface):
assert interface
def test_DoodadInterface_works(interface: DoodadInterface):
doodad = Doodad(**interface)
assert doodad