-
-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
118 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,3 +265,48 @@ fn test_autosync_remember() { | |
werkzeug==3.0.1 | ||
"###); | ||
} | ||
|
||
#[test] | ||
fn test_overrides() { | ||
// enforce werkzeug==2.3.8 when flask==3.0.0 requires Werkzeug>=3.0.0 | ||
|
||
let space = Space::new(); | ||
space.init("my-project"); | ||
|
||
rye_cmd_snapshot!(space.rye_cmd().arg("add").arg("werkzeug==2.3.8").arg("--override").arg("--no-sync"), @r###" | ||
success: true | ||
exit_code: 0 | ||
----- stdout ----- | ||
Initializing new virtualenv in [TEMP_PATH]/project/.venv | ||
Python version: [email protected] | ||
Added werkzeug==2.3.8 as override dependency | ||
----- stderr ----- | ||
"###); | ||
|
||
rye_cmd_snapshot!(space.rye_cmd().arg("add").arg("flask==3.0.0"), @r###" | ||
success: true | ||
exit_code: 0 | ||
----- stdout ----- | ||
Added flask==3.0.0 as regular dependency | ||
Reusing already existing virtualenv | ||
Generating production lockfile: [TEMP_PATH]/project/requirements.lock | ||
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock | ||
Installing dependencies | ||
Done! | ||
----- stderr ----- | ||
Built 1 editable in [EXECUTION_TIME] | ||
Resolved 8 packages in [EXECUTION_TIME] | ||
Downloaded 7 packages in [EXECUTION_TIME] | ||
Installed 8 packages in [EXECUTION_TIME] | ||
+ blinker==1.7.0 | ||
+ click==8.1.7 | ||
+ flask==3.0.0 | ||
+ itsdangerous==2.1.2 | ||
+ jinja2==3.1.2 | ||
+ markupsafe==2.1.3 | ||
+ my-project==0.1.0 (from file:[TEMP_PATH]/project) | ||
+ werkzeug==2.3.8 | ||
"###); | ||
} |