Skip to content

Commit 7152a7c

Browse files
committed
test: fix integration tests
1 parent c1fc16f commit 7152a7c

File tree

1 file changed

+56
-56
lines changed

1 file changed

+56
-56
lines changed

crates/uv/tests/it/license.rs

+56-56
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ fn project_with_no_license() -> Result<()> {
1919
"#,
2020
)?;
2121

22-
uv_snapshot!(context.filters(), context.license().arg("--universal"), @r###"
22+
uv_snapshot!(context.filters(), context.license().arg("--universal"), @r"
2323
success: true
2424
exit_code: 0
2525
----- stdout -----
26-
project: 0.1.0, Unknown License
26+
project v0.1.0 Unknown License
2727
2828
----- stderr -----
2929
Resolved 1 package in [TIME]
30-
"###
30+
"
3131
);
3232

3333
// `uv tree` should update the lockfile
@@ -54,15 +54,15 @@ fn project_with_trove_license() -> Result<()> {
5454
"#,
5555
)?;
5656

57-
uv_snapshot!(context.filters(), context.license().arg("--universal"), @r###"
57+
uv_snapshot!(context.filters(), context.license().arg("--universal"), @r"
5858
success: true
5959
exit_code: 0
6060
----- stdout -----
61-
project: 0.1.0, Other/Proprietary License
61+
project v0.1.0 Other/Proprietary License
6262
6363
----- stderr -----
6464
Resolved 1 package in [TIME]
65-
"###
65+
"
6666
);
6767

6868
// `uv tree` should update the lockfile
@@ -89,15 +89,15 @@ fn project_with_trove_osi_license() -> Result<()> {
8989
"#,
9090
)?;
9191

92-
uv_snapshot!(context.filters(), context.license().arg("--universal"), @r###"
92+
uv_snapshot!(context.filters(), context.license().arg("--universal"), @r"
9393
success: true
9494
exit_code: 0
9595
----- stdout -----
96-
project: 0.1.0, OSI Approved
96+
project v0.1.0 OSI Approved
9797
9898
----- stderr -----
9999
Resolved 1 package in [TIME]
100-
"###
100+
"
101101
);
102102

103103
// `uv tree` should update the lockfile
@@ -127,20 +127,20 @@ fn nested_dependencies() -> Result<()> {
127127
"#,
128128
)?;
129129

130-
uv_snapshot!(context.filters(), context.license().arg("--universal"), @r###"
130+
uv_snapshot!(context.filters(), context.license().arg("--universal"), @r"
131131
success: true
132132
exit_code: 0
133133
----- stdout -----
134-
project: 0.1.0, MIT License
135-
scikit-learn: 1.4.1.post1, BSD License
136-
joblib: 1.3.2, BSD License
137-
numpy: 1.26.4, BSD License
138-
scipy: 1.12.0, BSD License
139-
threadpoolctl: 3.4.0, BSD License
134+
project v0.1.0 MIT License
135+
scikit-learn v1.4.1.post1 BSD License
136+
joblib v1.3.2 BSD License
137+
numpy v1.26.4 BSD License
138+
scipy v1.12.0 BSD License
139+
threadpoolctl v3.4.0 BSD License
140140
141141
----- stderr -----
142142
Resolved 6 packages in [TIME]
143-
"###
143+
"
144144
);
145145

146146
// `uv tree` should update the lockfile
@@ -171,15 +171,15 @@ fn nested_platform_dependencies() -> Result<()> {
171171
success: true
172172
exit_code: 0
173173
----- stdout -----
174-
project: 0.1.0, Unknown License
175-
jupyter-client: 8.6.1, BSD License
176-
jupyter-core: 5.7.2, BSD License
177-
platformdirs: 4.2.0, MIT License
178-
traitlets: 5.14.2, BSD License
179-
python-dateutil: 2.9.0.post0, BSD License, Apache Software License
180-
six: 1.16.0, MIT License
181-
pyzmq: 25.1.2, GNU Library or Lesser General Public License (LGPL), BSD License
182-
tornado: 6.4, Apache Software License
174+
project v0.1.0 Unknown License
175+
jupyter-client v8.6.1 BSD License
176+
jupyter-core v5.7.2 BSD License
177+
platformdirs v4.2.0 MIT License
178+
traitlets v5.14.2 BSD License
179+
python-dateutil v2.9.0.post0 BSD License, Apache Software License
180+
six v1.16.0 MIT License
181+
pyzmq v25.1.2 GNU Library or Lesser General Public License (LGPL), BSD License
182+
tornado v6.4 Apache Software License
183183
184184
----- stderr -----
185185
Resolved 12 packages in [TIME]
@@ -234,10 +234,10 @@ fn frozen() -> Result<()> {
234234
success: true
235235
exit_code: 0
236236
----- stdout -----
237-
project: 0.1.0, Unknown License
238-
anyio: 4.3.0, MIT License
239-
idna: 3.6, BSD License
240-
sniffio: 1.3.1, MIT License, Apache Software License
237+
project v0.1.0 Unknown License
238+
anyio v4.3.0 MIT License
239+
idna v3.6 BSD License
240+
sniffio v1.3.1 MIT License, Apache Software License
241241
242242
----- stderr -----
243243
Resolved 4 packages in [TIME]
@@ -300,13 +300,13 @@ fn platform_dependencies() -> Result<()> {
300300
success: true
301301
exit_code: 0
302302
----- stdout -----
303-
project: 0.1.0, Unknown License
304-
black: 24.3.0, MIT License
305-
click: 8.1.7, BSD License
306-
mypy-extensions: 1.0.0, MIT License
307-
packaging: 24.0, Apache Software License, BSD License
308-
pathspec: 0.12.1, Mozilla Public License 2.0 (MPL 2.0)
309-
platformdirs: 4.2.0, MIT License
303+
project v0.1.0 Unknown License
304+
black v24.3.0 MIT License
305+
click v8.1.7 BSD License
306+
mypy-extensions v1.0.0 MIT License
307+
packaging v24.0 Apache Software License, BSD License
308+
pathspec v0.12.1 Mozilla Public License 2.0 (MPL 2.0)
309+
platformdirs v4.2.0 MIT License
310310
311311
----- stderr -----
312312
Resolved 8 packages in [TIME]
@@ -380,12 +380,12 @@ fn repeated_dependencies() -> Result<()> {
380380
success: true
381381
exit_code: 0
382382
----- stdout -----
383-
project: 0.1.0, Unknown License
384-
anyio: 1.4.0, MIT License
385-
async-generator: 1.10, MIT License, Apache Software License
386-
idna: 3.6, BSD License
387-
sniffio: 1.3.1, MIT License, Apache Software License
388-
anyio: 4.3.0, MIT License
383+
project v0.1.0 Unknown License
384+
anyio v1.4.0 MIT License
385+
async-generator v1.10 MIT License, Apache Software License
386+
idna v3.6 BSD License
387+
sniffio v1.3.1 MIT License, Apache Software License
388+
anyio v4.3.0 MIT License
389389
390390
----- stderr -----
391391
Resolved 6 packages in [TIME]
@@ -451,13 +451,13 @@ fn repeated_version() -> Result<()> {
451451
success: true
452452
exit_code: 0
453453
----- stdout -----
454-
project: 0.1.0, Unknown License
455-
dependency: 0.0.1, Unknown License
456-
anyio: 3.7.0, MIT License
457-
idna: 3.6, BSD License
458-
sniffio: 1.3.1, MIT License, Apache Software License
459-
dependency: 0.0.1, Unknown License
460-
anyio: 3.0.0, MIT License
454+
project v0.1.0 Unknown License
455+
dependency v0.0.1 Unknown License
456+
anyio v3.7.0 MIT License
457+
idna v3.6 BSD License
458+
sniffio v1.3.1 MIT License, Apache Software License
459+
dependency v0.0.1 Unknown License
460+
anyio v3.0.0 MIT License
461461
462462
----- stderr -----
463463
Resolved 7 packages in [TIME]
@@ -511,12 +511,12 @@ fn workspace_dev() -> Result<()> {
511511
success: true
512512
exit_code: 0
513513
----- stdout -----
514-
project: 0.1.0, Unknown License
515-
anyio: 4.3.0, MIT License
516-
idna: 3.6, BSD License
517-
sniffio: 1.3.1, MIT License, Apache Software License
518-
child: 0.1.0, Unknown License (group: dev)
519-
iniconfig: 2.0.0, MIT License
514+
project v0.1.0 Unknown License
515+
anyio v4.3.0 MIT License
516+
idna v3.6 BSD License
517+
sniffio v1.3.1 MIT License, Apache Software License
518+
child v0.1.0 Unknown License (group: dev)
519+
iniconfig v2.0.0 MIT License
520520
521521
----- stderr -----
522522
Resolved 6 packages in [TIME]

0 commit comments

Comments
 (0)