Skip to content

Commit

Permalink
Test the entire resolver output
Browse files Browse the repository at this point in the history
to ensure nothing else was emitted
  • Loading branch information
richafrank committed May 31, 2022
1 parent d8b9135 commit 97471ea
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions tests/test_cli_compile.py
Expand Up @@ -1836,23 +1836,26 @@ def test_combine_different_extras_of_the_same_package(
]
)

out = runner.invoke(cli, ["--find-links", str(dists_dir)])

out = runner.invoke(
cli, ["--find-links", str(dists_dir), "--no-header", "--no-emit-options"]
)
assert out.exit_code == 0
assert (
"""\
fake-colorful==0.3
# via fake-ray
fake-ray[default,tune]==0.1
# via
# -r requirements.in
# fake-tune-sklearn
fake-tensorboardx==0.5
# via fake-ray
fake-tune-sklearn==0.7
# via -r requirements.in
"""
in out.stderr
dedent(
"""\
fake-colorful==0.3
# via fake-ray
fake-ray[default,tune]==0.1
# via
# -r requirements.in
# fake-tune-sklearn
fake-tensorboardx==0.5
# via fake-ray
fake-tune-sklearn==0.7
# via -r requirements.in
"""
)
== out.stderr
)


Expand Down

0 comments on commit 97471ea

Please sign in to comment.