Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a regression bug came from #731 PR #749

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

atugushev
Copy link
Member

@atugushev atugushev commented Feb 28, 2019

Fix the pip-compile setup.py --output-file=output.txt ignores --output-file option and compiles to a requirements.txt file.

Refs #731.

The `pip-compile setup.py --output-file=output.txt` ignores `--output-file` option and compiles to a `requirements.txt` file.

out = runner.invoke(cli, options)
assert out.exit_code == 0
assert os.path.exists(expected_output_file)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nitpick: the asserts could be dedented.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Let's clean it up in a following PR.

Copy link
Member Author

@atugushev atugushev Feb 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to that, i would also make the runner a fixture and clean up all the tests (which use the runnrt) like this one: https://github.com/jazzband/pip-tools/blob/67edc7d227507f3902090d2db8e129715279ae04/tests/test_cli_compile.py#L442-L449

IMO the tests look more concise in that way, so let's take advantages of the magnificent pytest.

@blueyed blueyed merged commit 6f99054 into jazzband:master Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants