From 139290742ae72fb563d5e1607abf491b1b80f103 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 4 Apr 2024 11:09:07 +0100 Subject: [PATCH] Remove test which no longer applies --- tests/pytests/unit/modules/test_aptpkg.py | 36 ----------------------- 1 file changed, 36 deletions(-) diff --git a/tests/pytests/unit/modules/test_aptpkg.py b/tests/pytests/unit/modules/test_aptpkg.py index 25eea5508d7..f1be3ca8b29 100644 --- a/tests/pytests/unit/modules/test_aptpkg.py +++ b/tests/pytests/unit/modules/test_aptpkg.py @@ -2302,39 +2302,3 @@ def test_latest_version_calls_aptcache_once_per_run(): ret = aptpkg.latest_version("sudo", "unzip", refresh=False) mock_apt_cache.assert_called_once() assert ret == {"sudo": "6.0-23+deb10u3", "unzip": ""} - - -@pytest.mark.parametrize( - "oneline,result", - ( - ( - "deb [signed-by=/etc/apt/keyrings/example.key arch=amd64] https://example.com/pub/repos/apt xenial main", - { - "signedby": { - "full": "signed-by=/etc/apt/keyrings/example.key", - "value": "/etc/apt/keyrings/example.key", - }, - "arch": {"full": "arch=amd64", "value": ["amd64"]}, - }, - ), - ( - "deb [arch=amd64 signed-by=/etc/apt/keyrings/example.key] https://example.com/pub/repos/apt xenial main", - { - "arch": {"full": "arch=amd64", "value": ["amd64"]}, - "signedby": { - "full": "signed-by=/etc/apt/keyrings/example.key", - "value": "/etc/apt/keyrings/example.key", - }, - }, - ), - ( - "deb [arch=amd64] https://example.com/pub/repos/apt xenial main", - { - "arch": {"full": "arch=amd64", "value": ["amd64"]}, - }, - ), - ), -) -def test__get_opts(oneline, result): - ret = aptpkg._get_opts(oneline) - assert ret == result