SRU ADT tests: Fix tests after the previous changes

This is the problem when implementing to a mock...
master
Iain Lane 6 years ago
parent f10caba01d
commit 73dabf2136
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

@ -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]}

Loading…
Cancel
Save