Cherry-pick changes from #1909

Let's hope this works.
This commit is contained in:
Tzu-ping Chung
2018-04-07 18:34:39 +08:00
parent a407bc8221
commit fa3934ac0d
3 changed files with 16 additions and 6 deletions
+1
View File
@@ -9,6 +9,7 @@ env:
- TEST_SUITE='dotvenv or check or unused or requirements'
- TEST_SUITE='complex'
- TEST_SUITE='markers or run or project or utils'
- TEST_SUITE='not (dotvenv or check or unused or requirements or complex or markers or run or project or utils or install)'
# command to install dependencies
install:
+8
View File
@@ -35,6 +35,10 @@ environment:
PYTHON_VERSION: "2.7.x"
TEST_SUITE: '"markers or run or project or utils"'
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
TEST_SUITE: 'not (dotvenv or check or unused or requirements or complex or markers or run or project or utils or install)'
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
TEST_SUITE: "install"
@@ -57,6 +61,10 @@ environment:
PYTHON_VERSION: "3.6.x"
TEST_SUITE: '"markers or run or project or utils"'
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
TEST_SUITE: 'not (dotvenv or check or unused or requirements or complex or markers or run or project or utils or install)'
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
TEST_SUITE: "install"
+7 -6
View File
@@ -238,7 +238,7 @@ class TestPipenv:
@pytest.mark.install
def test_install_parse_error(self, pypi):
with PipenvInstance(pypi=pypi) as p:
# Make sure unparseable packages don't wind up in the pipfile
# Escape $ for shell input
with open(p.pipfile_path, 'w') as f:
@@ -280,7 +280,7 @@ class TestPipenv:
assert 'urllib3' in p.lockfile['default']
assert 'certifi' in p.lockfile['default']
@pytest.mark.complex_lock
@pytest.mark.complex
@pytest.mark.lock
def test_complex_lock(self, pypi):
with PipenvInstance(pypi=pypi) as p:
@@ -1284,10 +1284,11 @@ multicommand = "bash -c \"cd docs && make html\""
assert c.return_code == 0
assert c.out == 'foo\n'
assert c.err == ''
if os.name != 'nt':
c = p.pipenv('run notfoundscript')
assert c.return_code == 1
assert c.out == ''
c = p.pipenv('run notfoundscript')
assert c.return_code == 1
assert c.out == ''
if os.name != 'nt': # TODO: Implement this message for Windows.
assert 'Error' in c.err
assert 'randomthingtotally (from notfoundscript)' in c.err