diff --git a/migas_server/tests/test_types.py b/migas_server/tests/test_types.py new file mode 100644 index 0000000..7a060aa --- /dev/null +++ b/migas_server/tests/test_types.py @@ -0,0 +1,13 @@ +import pytest + +from migas_server import types + +@pytest.mark.parametrize('names', 'val', [ + (['running', 'R'], 'R'), + (['completed', 'C'], 'C'), + (['failed', 'F'], 'F'), + (['suspended', 'S'], 'S'), +]) +def test_status(names, val): + for name in names: + assert getattr(types.Status, name).value == val