Christian Clauss
69a1e956da
Ruff rules C4,C90,PERF
2023-08-28 14:51:13 +02:00
pre-commit-ci[bot]
4221c23a2b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-04-10 16:45:34 +02:00
Ryan Shepherd
75db61099d
Mock _permitted instead of is_local
2023-04-10 16:45:34 +02:00
Tzu-ping Chung
42359a9605
Migrate tests to use pathlib.Path
...
The pip-specific Path implementation has been removed, and all its
usages replaced by pathlib.Path. The tmpdir and tmpdir_factory fixtures
are also removed, and all usages are replaced by tmp_path and
tmp_path_factory, which use pathlib.Path.
The pip() function now also accepts pathlib.Path so we don't need to put
str() everywhere. Path arguments are coerced with os.fspath() into str.
2022-06-08 19:58:46 +08:00
Tzu-ping Chung
ad158b03e8
Fix types in tests on Windows
2021-11-18 17:58:12 +08:00
Tzu-ping Chung
ebd693e0b5
Abstract pkg_resources from uninstall operation
2021-11-18 17:55:38 +08:00
Jon Dufresne
60c274be2d
Complete type annotations of tests/unit/ directory
2021-09-23 05:44:54 -07:00
Pradyun Gedam
94999255d5
Reformat the codebase, with black
2021-08-20 13:37:49 +01:00
Pradyun Gedam
2940eaf53d
Merge pull request #9583 from hexagonrecursion/set-literal
...
Use the set literal syntax
2021-02-28 07:36:43 +00:00
Andrey Bienkowski
50db373adb
Lint
2021-02-10 13:38:21 +03:00
Andrey Bienkowski
ab35018c04
Use unittest.mock instead of mock
2021-02-10 13:28:55 +03:00
Andrey Bienkowski
264a65da80
Use the set literal syntax
2021-02-10 11:45:29 +03:00
Jon Dufresne
09b3d3a50b
Remove object from class definitions
...
Unnecessary since dropping Python 2 support. In Python 3, all classes
are new style classes.
2020-12-25 15:48:11 -08:00
Stéphane Bidoul (ACSONE)
75a12ff423
Add failing test for StashedUninstallPathSet symlink
2019-08-24 23:39:05 +02:00
Stéphane Bidoul (ACSONE)
885fdc3754
Correctly uninstall symlinks
2019-08-24 23:04:47 +02:00
Mike Hendricks
4e339f537d
Merge branch 'master' into uninstall-support-unc
2019-07-30 11:36:15 -07:00
Pradyun Gedam
537b0fca12
Change isort multi_line_output to 3
2019-07-22 10:15:27 +05:30
Chris Hunt
39ac9ca351
Rename compatible functions in tests.lib.path.Path.
2019-07-02 18:48:44 -04:00
Mike
d62bef4362
Document caveats for UNC paths in uninstall and add .pth unit tests
2019-05-21 11:14:11 -07:00
Steve Dower
c64503e58c
Fixes ordering of imports
2019-02-05 15:07:19 -08:00
Steve Dower
53d28bae66
Added more tests and handling for short directory names
2019-02-04 14:48:41 -08:00
Steve Dower
1948a7c378
Add compress_for_rename() test and preserve casing
2018-11-21 14:33:15 -08:00
Paul Moore
ab0644479f
Report files in original (filesystem) case
2018-07-23 13:21:07 +01:00
Pradyun Gedam
c92d13e9d3
Fix new lint errors from newer flake8
2018-06-27 12:53:31 +05:30
Bastian Venthur
4dee7e9ad2
Remove also compiled pyo files for wheel packages. ( #5173 )
2018-06-21 23:00:20 +05:30
Anthony Sottile
e21e2d3f8f
Upgrade syntax in ./tests
...
Changes were automated via https://github.com/asottile/pyupgrade
See #4921
2017-12-14 21:59:41 -08:00
Pradyun Gedam
353a13ddff
isort: Include trailing commas
2017-11-21 13:23:59 +05:30
Pradyun Gedam
c81e8ac105
Normalize case before comparing ( #4770 )
2017-10-07 13:15:06 +01:00
Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00
Pradyun S. Gedam
72b91cc109
Address review comments
2017-06-14 10:13:04 +05:30
Pradyun S. Gedam
61b18df5ab
🎨
2017-06-14 10:13:04 +05:30
Pradyun S. Gedam
26c5f12a92
Add a test for compressed_listing
2017-06-14 10:13:04 +05:30
Pradyun S. Gedam
9923c1ad7e
Sort imports and minor Flake8 changes ( #4520 )
...
* Run isort on the codebase
Command: isort --recursive --skip __main__.py --skip _vendor -o pip._vendor -sd THIRDPARTY -m 5 -p pip -p tests ./pip ./tests
* 📰
2017-06-13 14:17:00 +02:00
Pradyun S. Gedam
1832569530
Sort all imports
2017-05-16 15:47:47 +05:30
Xavier Fernandez
b559221ee1
Move uninstall file selection logic to req_uninstall.py
2016-11-20 13:04:14 +01:00
Jakub Wilk
6dc28c1b31
Fix typos
2016-06-10 21:29:43 +02:00
Xavier Fernandez
57ea6dd8b1
Fix TestUninstallPathSet.test_add
2016-01-17 22:40:46 +01:00
Xavier Fernandez
02b8c98970
Fix test_compact_shorter_path
2016-01-17 22:40:46 +01:00
Marcus Smith
0d8933ced6
normalize the head to resolve parent directory symlinks, but not the tail
2015-10-03 09:17:26 -07:00
Thomas Kluyver
b5d84a0dba
Fix monkeypatching of is_local()
2015-03-20 16:18:43 -07:00
Thomas Kluyver
94c63a78c1
Fix pep8 in tests again
2015-03-20 16:18:33 -07:00
Thomas Kluyver
068dfd7bd9
Simplify tests using pytest fixtures
2015-03-20 16:09:34 -07:00
Thomas Kluyver
7034545111
Make pep8 linter happy
2015-03-19 09:35:53 -07:00
Thomas Kluyver
9f66f31d42
Add tests for UninstallPathSet
2015-03-18 17:37:24 -07:00