Skip to content

Commit

Permalink
add some --json flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kalefranz committed Oct 20, 2016
1 parent 2b440cb commit e62db5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e62db5a

Please sign in to comment.