Clarify Pipfile + Pipfile.lock test
MODIFY
tests/venv/pipfile/pipfile-lock/Pipfile
tests/venv/pipfile/pipfile-lock/Pipfile
@@ -7,12 +7,12 @@ name = "pypi"
numpy = "*"
[dev-packages]
-sympy = "*"
+there = "*"
# The Pipfile.lock was generated when the Pipfile looked like this
# ----------------------------------------------------------------
# [packages]
-# requests = "*"
+# pypi-pkg-test = "*"
#
# [dev-packages]
# there = "*"

MODIFY
tests/venv/pipfile/pipfile-lock/Pipfile.lock
tests/venv/pipfile/pipfile-lock/Pipfile.lock
{
"_meta": {
"hash": {
- "sha256": "7160786c1e5cc8e9fe3617f458f7b1c2b617fa44b3fe2f927dee99374c3b05bc"
+ "sha256": "43abc56b3f80c806377843b5636db099809298ce32cff3d9cb043adca59b7e9d"
},
"pipfile-spec": 6,
"requires": {},
]
},
"default": {
- "certifi": {
+ "pypi-pkg-test": {
"hashes": [
- "sha256:59b7658e26ca9c7339e00f8f4636cdfe59d34fa37b9b04f6f9e9926b3cece1a5",
- "sha256:b26104d6835d1f5e49452a26eb2ff87fe7090b89dfcaee5ea2212697e1e1d7ae"
- ],
- "version": "==2019.3.9"
- },
- "chardet": {
- "hashes": [
- "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
- "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
- ],
- "version": "==3.0.4"
- },
- "idna": {
- "hashes": [
- "sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407",
- "sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c"
- ],
- "version": "==2.8"
- },
- "requests": {
- "hashes": [
- "sha256:502a824f31acdacb3a35b6690b5fbf0bc41d63a24a45c4004352b0242707598e",
- "sha256:7bf2a778576d825600030a110f3c0e3e8edc51dfaafe1c146e39a2027784957b"
+ "sha256:3bc6d0d3d671f5da379eb53cc13ecbb97ce66b1d11916ea2035f6f738b963cc3",
+ "sha256:ae89e01320aa248e9b626218ecc04c0fb4ae0b3b2a7895404277b488961edc25"
],
"index": "pypi",
- "version": "==2.21.0"
- },
- "urllib3": {
- "hashes": [
- "sha256:4c291ca23bbb55c76518905869ef34bdd5f0e46af7afe6861e8375643ffee1a0",
- "sha256:9a247273df709c4fedb38c711e44292304f73f39ab01beda9f6b9fc375669ac3"
- ],
- "version": "==1.24.2"
+ "version": "==0.0.4"
}
},
"develop": {

MODIFY
tests/venv/pipfile/pipfile-lock/verify
tests/venv/pipfile/pipfile-lock/verify
#!/usr/bin/env python
-import requests
+import pypi_pkg_test
import there
+
+try:
+ import numpy
+except ImportError:
+ # We want an ImportError to be thrown for this test to pass
+ pass
+else:
+ raise Exception("'numpy' shouldn't have been installed! It was listed in Pipfile but not in the Pipfile.lock.")

Clarify Pipfile + Pipfile.lock test