Skip to content

Commit

Permalink
clarify test_clone_offline_multichannel_with_untracked
Browse files Browse the repository at this point in the history
  • Loading branch information
kalefranz committed Jul 8, 2016
1 parent 6f3e0dd commit 3afd166
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ addopts =
--tb native
--strict
--durations 5
--verbose
markers =
slow: slow running tests
installed: tests that assume conda is pre-installed on PATH
Expand Down
7 changes: 6 additions & 1 deletion tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,14 @@ def test_clone_offline_multichannel_with_untracked(self):
json_obj = json_loads(stdout.replace("Fetching package metadata ...", "").strip())
assert bool(json_obj) is False

# add r channel
run_command(Commands.CONFIG, prefix, "--add channels r")
stdout, stderr = run_command(Commands.CONFIG, prefix, "--get", "--json")
json_obj = json_loads(stdout)
assert json_obj['rc_path'] == join(prefix, 'condarc')
assert json_obj['get']['channels']

# assert conda search cannot find rpy2
# assert conda search can now find rpy2
stdout, stderr = run_command(Commands.SEARCH, prefix, "rpy2", "--json")
json_obj = json_loads(stdout.replace("Fetching package metadata ...", "").strip())
assert len(json_obj['rpy2']) > 1
Expand Down

0 comments on commit 3afd166

Please sign in to comment.