From d3f455ca3b04b9406262fe5cc6599f5f110b8515 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.org> Date: Tue, 26 Sep 2017 11:30:19 -0400 Subject: [PATCH] more tests Signed-off-by: Kenneth Reitz <me@kennethreitz.org> --- test/fixtures/pipenv-full-version/Pipfile | 9 ++++++++ .../fixtures/pipenv-full-version/Pipfile.lock | 23 +++++++++++++++++++ test/fixtures/python2/runtime.txt | 2 +- test/run | 8 ++++++- 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 test/fixtures/pipenv-full-version/Pipfile create mode 100644 test/fixtures/pipenv-full-version/Pipfile.lock diff --git a/test/fixtures/pipenv-full-version/Pipfile b/test/fixtures/pipenv-full-version/Pipfile new file mode 100644 index 00000000..56194d02 --- /dev/null +++ b/test/fixtures/pipenv-full-version/Pipfile @@ -0,0 +1,9 @@ +[[source]] +url = "https://pypi.python.org/simple" +verify_ssl = true + +[packages] +requests = "*" + +[requires] +python_full_version = "3.6.2" \ No newline at end of file diff --git a/test/fixtures/pipenv-full-version/Pipfile.lock b/test/fixtures/pipenv-full-version/Pipfile.lock new file mode 100644 index 00000000..15f40775 --- /dev/null +++ b/test/fixtures/pipenv-full-version/Pipfile.lock @@ -0,0 +1,23 @@ +{ + "default": { + "requests": { + "version": "==2.13.0", + "hash": "sha256:1a720e8862a41aa22e339373b526f508ef0c8988baf48b84d3fc891a8e237efb" + } + }, + "develop": {}, + "_meta": { + "sources": [ + { + "url": "https://pypi.python.org/simple", + "verify_ssl": true + } + ], + "requires": { + "python_version": "3.6" + }, + "hash": { + "sha256": "5866990104fc8f27d13cdf01abc2a32c553129e03f666316cacc5b42d3e0884e" + } + } +} \ No newline at end of file diff --git a/test/fixtures/python2/runtime.txt b/test/fixtures/python2/runtime.txt index ba85ab97..2ce112e3 100644 --- a/test/fixtures/python2/runtime.txt +++ b/test/fixtures/python2/runtime.txt @@ -1 +1 @@ -python-2.7.13 \ No newline at end of file +python-2.7.14 \ No newline at end of file diff --git a/test/run b/test/run index faec5755..b5c0d349 100755 --- a/test/run +++ b/test/run @@ -11,6 +11,12 @@ testPipenvVersion() { assertCapturedSuccess } +testPipenvFullVersion() { + compile "pipenv-full-version" + assertCaptured "3.6.2" + assertCapturedSuccess +} + testNoRequirements() { compile "no-requirements" assertCapturedError @@ -61,7 +67,7 @@ testPylibmc() { testPython2() { compile "python2" - assertCaptured "python-2.7.13" + assertCaptured "python-2.7.14" assertCapturedSuccess } -- GitLab