diff --git a/test/test_voting.py b/test/test_voting.py index d98d784..cd2d1dc 100644 --- a/test/test_voting.py +++ b/test/test_voting.py @@ -38,7 +38,7 @@ class TestResult(unittest.TestCase): def test_result_data(self): res = self.result.result() - assert res['state'] == "LAUFEND" + assert res['state'] == "AUSSTEHEND" assert res['voting']['title'] == 'Test' assert res['voting']['quorum']['kind'] == 'NONE' assert res['voting']['quorum']['value'] == 0 diff --git a/voting/cli/voting.py b/voting/cli/voting.py index c8ffe57..d4608ca 100644 --- a/voting/cli/voting.py +++ b/voting/cli/voting.py @@ -61,7 +61,7 @@ def ls(verbose: bool = typer.Option(False, "--verbose", "-v", help="Verbose outp with Storage() as store: for v in store.votings: if only_active: - if Result(v).outcome != 'LAUFEND': + if Result(v).outcome != 'AUSSTEHEND': continue if verbose: res = Result(v).result() diff --git a/voting/voting.py b/voting/voting.py index 118b211..7598341 100644 --- a/voting/voting.py +++ b/voting/voting.py @@ -114,7 +114,7 @@ class Result: @abc.abstractmethod def outcome(self) -> str: if not self.has_ended(): - return "LAUFEND" + return "AUSSTEHEND" else: return "ANGENOMMEN" if self.votes()[Vote.JA.name] > self.votes()[Vote.NEIN.name] and self.quorum_reached() else "ABGELEHNT"