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

18 lines
433 B
Python

from pytest import fixture
from .model import Whatsit
from .interface import WhatsitInterface
@fixture
def interface() -> WhatsitInterface:
return WhatsitInterface(whatsit_id=1, name="Test whatsit", purpose="Test purpose")
def test_WhatsitInterface_create(interface: WhatsitInterface):
assert interface
def test_WhatsitInterface_works(interface: WhatsitInterface):
whatsit = Whatsit(**interface)
assert whatsit