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

18 lines
433 B
Python

from pytest import fixture
from .model import Fizzbar
from .interface import FizzbarInterface
@fixture
def interface() -> FizzbarInterface:
return FizzbarInterface(fizzbar_id=1, name="Test fizzbar", purpose="Test purpose")
def test_FizzbarInterface_create(interface: FizzbarInterface):
assert interface
def test_FizzbarInterface_works(interface: FizzbarInterface):
fizzbar = Fizzbar(**interface)
assert fizzbar