From e62db5a4d4dc082d14147704fc212d70d90ae43f Mon Sep 17 00:00:00 2001 From: Kale Franz Date: Thu, 20 Oct 2016 00:39:49 -0500 Subject: [PATCH] add some --json flags --- tests/test_create.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_create.py b/tests/test_create.py index 65985417f08..ccce8eb704a 100644 --- a/tests/test_create.py +++ b/tests/test_create.py @@ -304,7 +304,7 @@ def test_install_tarball_from_local_channel(self): copyfile(tar_old_path, tar_new_path) with bz2.BZ2File(join(subchan, 'repodata.json.bz2'), 'w') as f: f.write(json.dumps(repodata).encode('utf-8')) - run_command(Commands.INSTALL, prefix, '-c', channel, 'flask') + run_command(Commands.INSTALL, prefix, '-c', channel, 'flask', '--json') assert_package_is_installed(prefix, channel + '::' + 'flask-') run_command(Commands.REMOVE, prefix, 'flask') @@ -329,7 +329,7 @@ def test_install_tarball_from_local_channel(self): @pytest.mark.timeout(300) def test_tarball_install_and_bad_metadata(self): - with make_temp_env("python flask=0.10.1") as prefix: + with make_temp_env("python flask=0.10.1 --json") as prefix: assert_package_is_installed(prefix, 'flask-0.10.1') flask_data = [p for p in itervalues(linked_data(prefix)) if p['name'] == 'flask'][0] run_command(Commands.REMOVE, prefix, 'flask') @@ -361,7 +361,7 @@ def test_tarball_install_and_bad_metadata(self): # regression test for #2886 (part 2 of 2) # install tarball from package cache, local channel - run_command(Commands.REMOVE, prefix, 'flask') + run_command(Commands.REMOVE, prefix, 'flask', '--json') assert not package_is_installed(prefix, 'flask-0') run_command(Commands.INSTALL, prefix, tar_old_path) # The last install was from the `local::` channel