Paul Moore
66f323a53e
Fix a marker typo that the new registration of markers picked up :-)
2020-05-21 15:59:25 +01:00
Pradyun Gedam
22bd8add95
Merge pull request #8095 from hugovk/pip-cache-dir2
2020-04-28 00:57:10 +05:30
Hugo
6b640d1254
Add test for 'pip cache dir 123' with too many arguments
2020-04-27 11:02:18 +03:00
Noah Gorny
8c28b8173a
tests: commands: cache: Add no-cache-dir test case
2020-04-24 13:08:59 +03:00
Hugo
cebac6aa6c
Add 'pip cache dir' command to show the path to pip's cache directory
2020-04-20 11:48:36 +03:00
Ellen Marie Dash
b988417b4f
[tests/functional/test_cache] Use os.path.join() instead of hard-coding the path separator.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
0c4eafad62
[tests/functional/test_cache] Fix test on Python 2.7.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
b7239f5dee
[tests/functional/test_cache] Remove unused import.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
8858237903
[tests/functional/test_cache] Refactor list_matches_wheel() and remove_matches_wheel().
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
a20b28d008
[tests/functional/test_cache] Split apart tests for pip cache purge
.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
ba7c3ac9ec
[tests/functional/test_cache] Add test pip cache list
with an empty cache.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
32ce3bacbe
[tests/functional/cache] Rewrite all of the pip cache {list,remove} tests.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
c6b5a52a5a
[tests/functional/test_cache] Always call normcase on cache dir; fix line length problems.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
274b295bd8
[tests/functional/cache] Make fixtures feel less magical.
...
It bothered me that _whether or not a function had a certain argument_
dictated the contents of a directory. Pytest fixtures are inherently
kinda magical, but that was a bit much for me.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
6e425d8009
[tests/functional/cache] Refactor to be less redundant.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
8b518b258d
[commands/cache] Make filenames more realistic in tests.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
f8b67c8bf1
[commands/cache] Fix test_cache_info test.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
d74895a224
[commands/cache] Normalize path in test.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
2d978309a2
[commands/cache] Minor clean-up.
...
- Consistently use singular 'cache' (not plural 'caches').
- Remove unnecessary uses of the word 'currently'.
- Use 'file(s)' instead of 'files', to account for case of only one file.
- Use .format() when appropriate.
- Minor cleanup of `pip cache`-related files in docs/.
2020-04-01 16:54:42 -04:00
Ellen Marie Dash
6fb1ee7a3d
[commands/cache] fix linting error.
2020-04-01 16:54:04 -04:00
Ellen Marie Dash
50604be6c4
[commands/cache] Raise errors if wrong number of args.
...
Also add tests for purge_cache, since I apparently forgot those before.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
b9b29b8c10
[commands/cache] fix 'pip cache info'; don't hide python/abi/platform tags.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
b0e7b66326
[commands/cache] Refactor + fix linting failures.
2020-04-01 16:54:03 -04:00
Ellen Marie Dash
04c0b0e6eb
Add 'pip cache' command.
2020-04-01 16:54:03 -04:00