Loading cog/parse.py +0 −2 Original line number Diff line number Diff line Loading @@ -816,8 +816,6 @@ def parse_vote_tuple(vote_tuple): vote_type = EVoteType.cons if vote_type == 'cons' else EVoteType.prep amount = int(amount) if amount < 1: raise ValueError("Vote amount must be greater than 0.") except ValueError as exc: raise ThrowArggumentParser from exc Loading tests/cog/test_parse.py +0 −3 Original line number Diff line number Diff line Loading @@ -54,8 +54,5 @@ def test_parse_vote_tuple(): with pytest.raises(cog.parse.ThrowArggumentParser): cog.parse.parse_vote_tuple(['cons', 'wrong']) with pytest.raises(cog.parse.ThrowArggumentParser): cog.parse.parse_vote_tuple(['cons', '-5']) assert cog.parse.parse_vote_tuple(['cons', '5']) == (EVoteType.cons, 5) assert cog.parse.parse_vote_tuple(['1', 'prep']) == (EVoteType.prep, 1) Loading
cog/parse.py +0 −2 Original line number Diff line number Diff line Loading @@ -816,8 +816,6 @@ def parse_vote_tuple(vote_tuple): vote_type = EVoteType.cons if vote_type == 'cons' else EVoteType.prep amount = int(amount) if amount < 1: raise ValueError("Vote amount must be greater than 0.") except ValueError as exc: raise ThrowArggumentParser from exc Loading
tests/cog/test_parse.py +0 −3 Original line number Diff line number Diff line Loading @@ -54,8 +54,5 @@ def test_parse_vote_tuple(): with pytest.raises(cog.parse.ThrowArggumentParser): cog.parse.parse_vote_tuple(['cons', 'wrong']) with pytest.raises(cog.parse.ThrowArggumentParser): cog.parse.parse_vote_tuple(['cons', '-5']) assert cog.parse.parse_vote_tuple(['cons', '5']) == (EVoteType.cons, 5) assert cog.parse.parse_vote_tuple(['1', 'prep']) == (EVoteType.prep, 1)