Switch to tablib and try again

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-03-29 22:00:44 -04:00
parent 0af19190d1
commit 00ebba4b58
+4 -3
View File
@@ -562,22 +562,23 @@ tpfd = "*"
@pytest.mark.run
@pytest.mark.markers
@pytest.mark.install
@pytest.mark.failed
def test_package_environment_markers(self, pypi):
with PipenvInstance(pypi=pypi) as p:
with open(p.pipfile_path, 'w') as f:
contents = """
[packages]
requests = {version = "*", markers="os_name=='splashwear'"}
tablib = {version = "*", markers="os_name=='splashwear'"}
""".strip()
f.write(contents)
c = p.pipenv('install')
assert c.return_code == 0
assert 'Ignoring' in c.out
assert 'markers' in p.lockfile['default']['requests']
assert 'markers' in p.lockfile['default']['tablib']
c = p.pipenv('run python -c "import requests;"')
c = p.pipenv('run python -c "import tablib;"')
assert c.return_code == 1
@pytest.mark.run