CICD/app/fizz/fizzbaz/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 Fizzbaz
from .interface import FizzbazInterface
@fixture
def interface() -> FizzbazInterface:
2019-08-03 18:55:38 +02:00
return FizzbazInterface(fizzbaz_id=1, name="Test fizzbaz", purpose="Test purpose")
2019-05-19 16:56:56 +02:00
def test_FizzbazInterface_create(interface: FizzbazInterface):
assert interface
def test_FizzbazInterface_works(interface: FizzbazInterface):
fizzbaz = Fizzbaz(**interface)
assert fizzbaz