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
84129c2d
Commit
84129c2d
authored
Jan 27, 2016
by
David Read
Browse files
Fix tests.
parent
7fde1b43
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_archiver.py
View file @
84129c2d
...
...
@@ -12,14 +12,15 @@ from nose.tools import assert_raises, assert_equal
from
ckan
import
model
from
ckan
import
plugins
from
ckan.tests
import
BaseCase
from
ckan.logic
import
get_action
try
:
from
ckan.tests.helpers
import
reset_db
from
ckan.tests
import
factories
as
ckan_factories
from
ckan.tests.legacy
import
BaseCase
except
ImportError
:
from
ckan.new_tests.helpers
import
reset_db
from
ckan.new_tests
import
factories
as
ckan_factories
from
ckan.tests
import
BaseCase
from
ckanext.archiver
import
model
as
archiver_model
from
ckanext.archiver.model
import
Archival
...
...
@@ -375,6 +376,7 @@ class TestArchiver(BaseCase):
assert
params
.
get
(
'package_id'
)
==
pkg
[
'id'
]
assert
params
.
get
(
'resource_id'
)
==
None
class
TestDownload
(
BaseCase
):
'''Tests of the download method (and things it calls).
...
...
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