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
a677677b
Commit
a677677b
authored
Apr 27, 2016
by
David Read
Browse files
Merge pull request #27 from ckan/travis-fix
Travis fix
parents
25fe827e
28cfd602
Changes
3
Show whitespace changes
Inline
Side-by-side
bin/travis-build.bash
View file @
a677677b
...
...
@@ -30,6 +30,12 @@ cd ckan
paster db init
-c
test-core.ini
cd
-
echo
"SOLR config..."
# solr is multicore for tests on ckan master now, but it's easier to run tests
# on Travis single-core still.
# see https://github.com/ckan/ckan/issues/2972
sed
-i
-e
's/solr_url.*/solr_url = http:\/\/127.0.0.1:8983\/solr/'
ckan/test-core.ini
echo
"Installing dependency ckanext-report and its requirements..."
pip
install
-e
git+https://github.com/datagovuk/ckanext-report.git#egg
=
ckanext-report
...
...
ckanext/archiver/plugin.py
View file @
a677677b
...
...
@@ -30,14 +30,6 @@ class ArchiverPlugin(p.SingletonPlugin, p.toolkit.DefaultDatasetForm):
# IDomainObjectModification
def
notify
(
self
,
entity
,
operation
=
None
):
if
not
p
.
toolkit
.
check_ckan_version
(
'2.3'
):
self
.
_notify
(
entity
,
operation
)
def
notify_after_commit
(
self
,
entity
,
operation
=
None
):
if
p
.
toolkit
.
check_ckan_version
(
'2.3'
):
self
.
_notify
(
entity
,
operation
)
def
_notify
(
self
,
entity
,
operation
=
None
):
if
not
isinstance
(
entity
,
model
.
Package
):
return
...
...
tests/test_archiver.py
View file @
a677677b
...
...
@@ -346,7 +346,7 @@ class TestArchiver(BaseCase):
'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