From a29f5337e33f17a1cb87849dca9bbc2312bb8fac Mon Sep 17 00:00:00 2001 From: mathiasg Date: Thu, 15 Dec 2022 19:12:52 -0500 Subject: [PATCH] TST: Add test for status value --- migas_server/tests/test_types.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 migas_server/tests/test_types.py 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