Commit Graph

47 Commits

Author SHA1 Message Date
Frost Ming ca5d931f1f Update to py36 plus syntax 2021-07-28 10:59:00 +08:00
Isheros dc882677e9 Added fix for bug 4141 2020-12-07 01:51:02 -06:00
Isheros 122379026a Added a test for the bug 2020-12-07 01:48:42 -06:00
frostming 8c959096a8 Adapt test cases to prefer the mocked PyPI. 2020-09-01 16:35:37 +08:00
Dan Ryan c1061bd0a2 Use vistir path normalization for shortened windows paths
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:14:07 -04:00
Dan Ryan d91a9d4fa6 Normalize paths in test_run_in_virtualenv for windows
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:14:07 -04:00
frostming 7d36f3fbda Reformat codes 2019-09-06 18:06:05 +08:00
John Vandenberg c79b291cbb Avoid using requests unnecessarily in tests
This replaces requests with tablib in test_include_editable_packages
as in a de-vendored environment the locking fails with requests.

Continuation of https://github.com/pypa/pipenv/issues/3644
2019-07-11 13:33:00 +07:00
Dan Ryan b105ea534b Fix test for formatting paths
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-07-06 14:47:39 -04:00
Dan Ryan e57898ac58 Fix windows test failure and leaky session from xmlrpc call
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-07-05 23:51:10 -04:00
Dan Ryan 83868c8f1a Cut over to devpi for tests and improve logging
- Verbose logs will now write gracefully to the terminal even while the
  spinner is running (i.e. during locking)
- This PR also cuts over to Devpi for a backing cache rather than a
  hacked httpbin instance
- Inclues a refactor of `pip_install` to deduplicate logic
- Attempts to switch back to relying on native editable installs in pip
  as the current implementation is broken on master (i.e. nothing is
  installed in the virtualenv)
- Fixes #3809

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-25 01:26:49 -04:00
Dan Ryan 359906c669 Update tests to resolve some transient resolution issues
Signed-off-by: Dan Ryan <dan@danryan.co>

probably need to sync submodules for this to work

Signed-off-by: Dan Ryan <dan@danryan.co>

Update to new version of artifacts

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix windows failure

Signed-off-by: Dan Ryan <dan@danryan.co>

Update azure-pipelines.yml for Azure Pipelines

Update lockfile test for windows

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix scandir test

Signed-off-by: Dan Ryan <dan@danryan.co>

Update azure test steps

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix virtualenv test

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix python discovery when nothing is supplied

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix cli ensure_project call

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix run in virtualenv test

Signed-off-by: Dan Ryan <dan@danryan.co>

Show why virtualenv test failed if it did

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix python interpreter discovery

Signed-off-by: Dan Ryan <dan@danryan.co>

scale down lock test modifications and increase error logging

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix spinner bugs on windows and python discovery

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix pythonfinder search algorithm to dodge false paths on win

Signed-off-by: Dan Ryan <dan@danryan.co>

use pipenv directly

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-03 22:01:07 -04:00
Dan Ryan c23e57b482 Fix test and pipeline definitions
- Update extras name in pipelines
- fix windows virtualenv calls
- don't write debug info during virtualenv creation and just move on
- Generalize some pipelines
- Use quotes around evaluated statements in pipeline
- Fix envvar references
- Update vistir:
  - fix stream wrapper on windows
  - fix ICACLS permissions handler
  - fix path normalization function
- Update azure venv creation script
- Fix vendoring script

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-18 23:22:53 -04:00
Dan Ryan d8e66c7fce Add future imports to tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-16 00:52:10 -04:00
Dan Ryan cd2cbd4e1a Avoid using which in cross platform tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-20 18:20:51 -05:00
Dan Ryan a47a26b87a Fix failing tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-20 11:51:15 -05:00
Dan Ryan 9340ddb962 Update tests to rectify issues
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-20 02:38:02 -05:00
Dan Ryan 5ac228e68f Fix test errors and local install for azure
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-19 09:34:48 -05:00
Dan Ryan 574fe7308d Update all vendored dependencies
- Clean up test config and environment variable handling
- Unset env var changes performend by `pipenv run`
- Make `environments.is_in_virtualenv()` more dynamic -- read
  environment on the fly
- Split up tests on `pipenv run` to reduce complexity -- one test for
  global run (no virtualenv creation), one test for virtualenv creation
- Add `warn_in_virtualenv` call to `run` command, why doesn't click
  invoke this automatically?

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-01-21 19:05:25 -05:00
jxltom 16db36e60f Test for pipenv behavior in activated virtualenv 2018-12-16 20:36:32 +08:00
Frost Ming aadb24b9df Move to install test suite 2018-12-07 09:00:04 +08:00
Frost Ming 27f83a8631 preserve inline spaces in toml 2018-12-06 15:54:18 +08:00
jxltom 85e64b86be Resort imports for tests 2018-12-01 17:26:32 +08:00
Frost Ming a8f52eb0a6 determin virtualenv location on the run
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 17:51:26 +08:00
Frost Ming 748d22b2f2 virtualenv fixture and a test case
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 13:08:12 +08:00
Frost Ming ff8d17f383 switch to pathlib tmpdir
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 08:59:06 +08:00
Frost Ming 483621f478 recognize editable packages as in project
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 00:10:46 +08:00
frostming e147dc3ade Drops prettytoml/contoml form vendors 2018-11-08 10:57:20 +08:00
frostming 3eba19d359 Improve toml parsing 2018-11-08 10:22:26 +08:00
Dan Ryan 7227c9b2c9 Fix pip compat imports for piptools
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-17 18:51:53 -04:00
Dan Ryan 8abb764ce8 Update pypi urls
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-17 14:43:09 -04:00
Dan Ryan da29453b62 Allow the use of many sources instead of just 2
- Fixes #2130

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-05 23:18:09 -04:00
Kyle Altendorf e4270dc292 Merge remote-tracking branch 'upstream/1847-newlines' into 1847-newlines 2018-05-03 12:20:59 -07:00
Tzu-ping Chung 116ce7191d Better test errors and remove useless newline='' 2018-05-04 02:39:53 +08:00
Dan Ryan d26e16a539 Read in universal newline mode
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-03 12:08:59 -04:00
Dan Ryan a075445367 Updated versions
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-03 11:59:55 -04:00
Kyle Altendorf ab63176851 Add message to newline assertions
Compensating for https://github.com/pytest-dev/pytest/issues/3443
2018-05-03 08:45:44 -07:00
Kyle Altendorf 536d6febc3 Revert "Update newline tests"
This reverts commit 18704a5e21.
2018-05-03 08:38:33 -07:00
Kyle Altendorf 8a25696528 Revert "Update newline check"
This reverts commit 415566f5d6.
2018-05-03 08:38:25 -07:00
Dan Ryan 5718ae8f42 Fix newline tests for windows
- Adjust for proper parameterization

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-03 03:27:45 -04:00
Dan Ryan 415566f5d6 Update newline check
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-02 22:40:38 -04:00
Dan Ryan 18704a5e21 Update newline tests 2018-05-02 20:49:52 -04:00
Kyle Altendorf 6d2e208aae Default to \n, retain consistent \r\n
When writing the Pipfile and Pipfile.lock make an effort to retain
their existing newlines if consistent.  Default to \n (LF) for new
files and files with inconsistent line endings.
2018-04-26 15:50:43 -04:00
Dan Ryan 3722d8a8cf Add pipfile env var expansion and test
- Fixes #1906

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-17 17:24:39 -04:00
Dan Ryan 31a4a75c98 Sort items before comparison
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-17 01:52:16 -04:00
Dan Ryan 7a8d01edc3 Fix tests and index url fetching code per requests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-17 01:16:49 -04:00
Dan Ryan f93b9f2428 Add tests for project source changes
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-16 23:15:04 -04:00