From c19e1947f896c77b0dc0693d9f716576734eb722 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 2 Aug 2016 12:02:40 -0400 Subject: [PATCH] Remove tests for cmdutils.arg_or_count (fixes #1735 with previous commits) --- tests/unit/commands/test_cmdutils.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/tests/unit/commands/test_cmdutils.py b/tests/unit/commands/test_cmdutils.py index e03bc2b1e..b01411c3d 100644 --- a/tests/unit/commands/test_cmdutils.py +++ b/tests/unit/commands/test_cmdutils.py @@ -64,29 +64,6 @@ class TestCheckOverflow: assert str(excinfo.value) == expected_str -class TestArgOrCount: - - @pytest.mark.parametrize('arg, count', [(None, None), (1, 1)]) - def test_exceptions(self, arg, count): - with pytest.raises(ValueError): - cmdutils.arg_or_count(arg, count) - - @pytest.mark.parametrize('arg, count', [(1, None), (None, 1)]) - def test_normal(self, arg, count): - assert cmdutils.arg_or_count(arg, count) == 1 - - @pytest.mark.parametrize('arg, count, countzero, expected', [ - (0, None, 2, 0), - (None, 0, 2, 2), - ]) - def test_countzero(self, arg, count, countzero, expected): - ret = cmdutils.arg_or_count(arg, count, countzero=countzero) - assert ret == expected - - def test_default(self): - assert cmdutils.arg_or_count(None, None, default=2) == 2 - - class TestCheckExclusive: @pytest.mark.parametrize('flags', [[], [False, True], [False, False]])