File tree Expand file tree Collapse file tree 2 files changed +1
-38
lines changed
Expand file tree Collapse file tree 2 files changed +1
-38
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ pub(crate) async fn sync(
367367 _ => { }
368368 }
369369
370- // Pretty-print JSON for better readability and write it to stdout
370+ // Print JSON for better readability and write it to stdout
371371 if format. is_json ( ) {
372372 writeln ! ( printer. stdout( ) , "{}" , sync_json. as_json( ) ?) ?;
373373 }
Original file line number Diff line number Diff line change @@ -7818,43 +7818,6 @@ fn sync_dry_run_format() -> Result<()> {
78187818 + typing-extensions==4.10.0
78197819 "### ) ;
78207820
7821- // test script
7822- let script = context. temp_dir . child ( "script.py" ) ;
7823- script. write_str ( indoc ! { r#"
7824- # /// script
7825- # requires-python = ">=3.12"
7826- # dependencies = [
7827- # "anyio",
7828- # ]
7829- # ///
7830-
7831- import anyio
7832- "#
7833- } ) ?;
7834-
7835- let filters = context
7836- . filters ( )
7837- . into_iter ( )
7838- . chain ( vec ! [ (
7839- r"environments-v2/[\w-]+" ,
7840- "environments-v2/[HASHEDNAME]" ,
7841- ) ] )
7842- . collect :: < Vec < _ > > ( ) ;
7843- uv_snapshot ! ( context. filters( ) , context. sync( ) . arg( "--dry-run" ) . arg( "--script" ) . arg( "script.py" ) . arg( "--format=json" ) , @r###"
7844- success: true
7845- exit_code: 0
7846- ----- stdout -----
7847- {"project_dir":"[TEMP_DIR]/","environment":{"path":"[CACHE_DIR]/builds-v0/[TMP]/python","python_version":"3.12.[X]"}}
7848-
7849- ----- stderr -----
7850- Resolved 3 packages in [TIME]
7851- Would download 3 packages
7852- Would install 3 packages
7853- + anyio==4.3.0
7854- + idna==3.6
7855- + sniffio==1.3.1
7856- "### ) ;
7857-
78587821 Ok ( ( ) )
78597822}
78607823#[ test]
You can’t perform that action at this time.
0 commit comments