CICD/app/fizz/fizzbar/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 Fizzbar
from .interface import FizzbarInterface
@fixture
def interface() -> FizzbarInterface:
2019-08-03 18:55:38 +02:00
return FizzbarInterface(fizzbar_id=1, name="Test fizzbar", purpose="Test purpose")
2019-05-19 16:56:56 +02:00
def test_FizzbarInterface_create(interface: FizzbarInterface):
assert interface
def test_FizzbarInterface_works(interface: FizzbarInterface):
fizzbar = Fizzbar(**interface)
assert fizzbar