mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix GRT export test
This commit is contained in:
@@ -7,7 +7,6 @@ import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
import six
|
||||
import yaml
|
||||
from base import integration_util
|
||||
from base.populators import DatasetPopulator
|
||||
@@ -132,7 +131,7 @@ class ScriptsIntegrationTestCase(integration_util.IntegrationTestCase):
|
||||
json_file = os.path.join(self.config_dir, json_files[0])
|
||||
with open(json_file, "r") as f:
|
||||
export = json.load(f)
|
||||
assert export["version"] == 1
|
||||
assert export["version"] == 2
|
||||
|
||||
def test_admin_cleanup_datasets(self):
|
||||
self._scripts_check_argparse_help("cleanup_datasets/admin_cleanup_datasets.py")
|
||||
@@ -178,7 +177,7 @@ class ScriptsIntegrationTestCase(integration_util.IntegrationTestCase):
|
||||
clean_env = {
|
||||
"PATH": os.environ.get("PATH", None),
|
||||
} # Don't let testing environment variables interfere with config.
|
||||
return six.text_type(subprocess.check_output(cmd, cwd=cwd, env=clean_env))
|
||||
return subprocess.check_output(cmd, cwd=cwd, env=clean_env).decode('utf-8')
|
||||
|
||||
def write_config_file(self):
|
||||
config_dir = self.config_dir
|
||||
|
||||
Reference in New Issue
Block a user