Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Apr 13, 2024
1 parent b045cba commit 59fb7ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,5 @@ One use of the upgrade-shared command is to force a `pip` upgrade.
Another use of the upgrade-shared command is to pin (temporarily) `pip` to a specific version.

```shell
> pipx upgrade-shared --pip-args='pip==24.0'
> pipx upgrade-shared --pip-args=pip==24.0
```
4 changes: 2 additions & 2 deletions tests/test_upgrade_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def pip_version():

assert shared_libs.has_been_updated_this_run is False
assert shared_libs.is_valid is False
assert run_pipx_cli(["upgrade-shared", "-v", "--pip-args='pip==24.0'"]) == 0
assert run_pipx_cli(["upgrade-shared", "-v", "--pip-args=pip==24.0"]) == 0
assert shared_libs.is_valid is True
assert pip_version() == "24.0"
shared_libs.has_been_updated_this_run = False # reset for next run
assert run_pipx_cli(["upgrade-shared", "-v", "--pip-args='pip==23.3.2'"]) == 0
assert run_pipx_cli(["upgrade-shared", "-v", "--pip-args=pip==23.3.2"]) == 0
assert shared_libs.is_valid is True
assert pip_version() == "23.3.2"

0 comments on commit 59fb7ef

Please sign in to comment.