CICD/app/other_api/whatsit/interface_test.py

18 lines
433 B
Python
Raw Normal View History

2019-05-19 16:56:56 +02:00
from pytest import fixture
from .model import Whatsit
from .interface import WhatsitInterface
@fixture
def interface() -> WhatsitInterface:
2019-08-03 18:55:38 +02:00
return WhatsitInterface(whatsit_id=1, name="Test whatsit", purpose="Test purpose")
2019-05-19 16:56:56 +02:00
def test_WhatsitInterface_create(interface: WhatsitInterface):
assert interface
def test_WhatsitInterface_works(interface: WhatsitInterface):
whatsit = Whatsit(**interface)
assert whatsit