From 73dabf213606370bb8b3b949bf2839fd72030c95 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Thu, 23 May 2019 10:38:58 +0100 Subject: [PATCH] SRU ADT tests: Fix tests after the previous changes This is the problem when implementing to a mock... --- tests/test_sruadtregression.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_sruadtregression.py b/tests/test_sruadtregression.py index 385a94a..a85e3c7 100755 --- a/tests/test_sruadtregression.py +++ b/tests/test_sruadtregression.py @@ -127,8 +127,8 @@ class T(unittest.TestCase): options = FakeOptions options.unstable = tmpdir - pkg_mock = Mock() - pkg_mock.self_link = 'https://api.launchpad.net/1.0/ubuntu/+archive/primary/+sourcepub/9870565' + pkg_mock = {} + pkg_mock['self_link'] = 'https://api.launchpad.net/1.0/ubuntu/+archive/primary/+sourcepub/9870565' lp.return_value = {'entries': [pkg_mock]} @@ -309,8 +309,8 @@ class T(unittest.TestCase): options = FakeOptions options.unstable = tmpdir - pkg_mock = Mock() - pkg_mock.self_link = 'https://api.launchpad.net/1.0/ubuntu/+archive/primary/+sourcepub/9870565' + pkg_mock = {} + pkg_mock['self_link'] = 'https://api.launchpad.net/1.0/ubuntu/+archive/primary/+sourcepub/9870565' lp.return_value = {'entries': [pkg_mock]}