Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-archiver
Commits
7a158bb9
Commit
7a158bb9
authored
Apr 27, 2016
by
David Read
Browse files
A bit more info to see why test is broken on travis but not locally.
parent
ae8d48e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_archiver.py
View file @
7a158bb9
...
...
@@ -340,13 +340,13 @@ class TestArchiver(BaseCase):
def
test_package_achived_when_resource_modified
(
self
,
url
,
send_task
):
data_dict
=
self
.
_test_resource
(
url
)
data_dict
[
'url'
]
=
'http://example.com/foo'
context
=
{
'model'
:
model
,
context
=
{
'model'
:
model
,
'user'
:
'test'
,
'ignore_auth'
:
True
,
'session'
:
model
.
Session
}
result
=
get_action
(
'resource_update'
)(
context
,
data_dict
)
assert
send_task
.
called
==
True
assert
_equal
(
send_task
.
called
,
True
)
args
,
kwargs
=
send_task
.
call_args
assert
args
==
(
'archiver.update_package'
,)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment