CICD/app/other_api/doodad/interface_test.py
2019-08-03 12:55:38 -04:00

18 lines
420 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