Skip to content

Commit

Permalink
added basic setup.py parsing feature test
Browse files Browse the repository at this point in the history
  • Loading branch information
majuscule committed Mar 28, 2017
1 parent 7d18f7f commit e89fc23
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ def test_command_line_overrides_pip_conf(pip_conf):
assert 'Using indexes:\n http://override.com' in out.output


def test_command_line_setuptools_read(pip_conf):

runner = CliRunner()
with runner.isolated_filesystem():
package = open('setup.py', 'w')
package.write(dedent("""\
from setuptools import setup
setup(install_requires=[])
"""))
package.close()
out = runner.invoke(cli)

# check that pip-compile generated a configuration
assert 'This file is autogenerated by pip-compile' in out.output


def test_find_links_option(pip_conf):

assert os.path.exists(pip_conf)
Expand Down

0 comments on commit e89fc23

Please sign in to comment.