mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-13 23:38:20 +00:00
SRU ADT tests: Fix tests after the previous changes
This is the problem when implementing to a mock...
This commit is contained in:
parent
f10caba01d
commit
73dabf2136
@ -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…
x
Reference in New Issue
Block a user