Skip to content

Commit

Permalink
Refactor to toolkit.check_ckan_version
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelboca committed Mar 7, 2023
1 parent f4deb54 commit b55b0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/xloader/tests/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def get_large_response(download_url, headers):

@pytest.fixture
def apikey():
try:
if toolkit.check_ckan_version(min_version="2.10"):
sysadmin = factories.SysadminWithToken()
except AttributeError:
else:
# To provide support with CKAN 2.9
sysadmin = factories.Sysadmin()
sysadmin["token"] = get_xloader_user_apitoken()
Expand Down

0 comments on commit b55b0b5

Please sign in to comment.