CICD/app/other_api/whatsit/interface_test.py

20 lines
447 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:
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