mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Fix test_repositories_operations integration test
Need to use admin key to get updates.
This commit is contained in:
@@ -78,7 +78,11 @@ class TestRepositoryInstallIntegrationTestCase(integration_util.IntegrationTestC
|
||||
shed_text = shed_config.read().replace(REVISION_4, REVISION_3)
|
||||
with open(self._app.config.shed_tool_config_file, 'w') as shed_config:
|
||||
shed_config.write(shed_text)
|
||||
self._get('/api/tool_shed_repositories/check_for_updates', data={'id': response['id']}).json()
|
||||
self._get(
|
||||
'/api/tool_shed_repositories/check_for_updates',
|
||||
data={'id': response['id']},
|
||||
admin=True
|
||||
).json()
|
||||
# At this point things should look like there is minor update available
|
||||
repo_response = self._get("/api/tool_shed_repositories/%s" % response['id']).json()
|
||||
assert repo_response['tool_shed_status']['revision_update'] == 'True'
|
||||
|
||||
@@ -4,10 +4,11 @@ import string
|
||||
import tempfile
|
||||
|
||||
import pytest
|
||||
|
||||
from galaxy.util import unicodify
|
||||
from galaxy_test.base.populators import DEFAULT_TIMEOUT
|
||||
from galaxy_test.driver.driver_util import FRAMEWORK_UPLOAD_TOOL_CONF
|
||||
|
||||
from galaxy.util import unicodify
|
||||
|
||||
# Needs a longer timeout because of the conda_auto_install.
|
||||
CONDA_AUTO_INSTALL_JOB_TIMEOUT = DEFAULT_TIMEOUT * 3
|
||||
|
||||
Reference in New Issue
Block a user