Skip to content

Commit

Permalink
TST: Add test for status value
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Dec 16, 2022
1 parent ac0d158 commit a29f533
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions migas_server/tests/test_types.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a29f533

Please sign in to comment.