@@ -51,14 +51,14 @@ def test_no_change_should_be_fully_cached(pixi: Path, simple_workspace: Workspac
5151 ]
5252 )
5353
54- conda_metadata_params = simple_workspace .debug_dir .joinpath ("conda_outputs_params.json" )
54+ conda_output_params = simple_workspace .debug_dir .joinpath ("conda_outputs_params.json" )
5555 conda_build_params = simple_workspace .debug_dir .joinpath ("conda_build_v1_params.json" )
5656
57- assert conda_metadata_params .is_file ()
57+ assert conda_output_params .is_file ()
5858 assert conda_build_params .is_file ()
5959
6060 # Remove the files to get a clean state
61- conda_metadata_params .unlink ()
61+ conda_output_params .unlink ()
6262 conda_build_params .unlink ()
6363
6464 verify_cli_command (
@@ -72,11 +72,13 @@ def test_no_change_should_be_fully_cached(pixi: Path, simple_workspace: Workspac
7272 )
7373
7474 # Everything should be cached, so no getMetadata or build call
75- assert not conda_metadata_params .is_file ()
75+ assert not conda_output_params .is_file ()
7676 assert not conda_build_params .is_file ()
7777
7878
79- def test_source_change_trigger_rebuild (pixi : Path , simple_workspace : Workspace ) -> None :
79+ def test_recipe_change_trigger_metadata_invalidation (
80+ pixi : Path , simple_workspace : Workspace
81+ ) -> None :
8082 simple_workspace .write_files ()
8183 verify_cli_command (
8284 [
@@ -88,12 +90,12 @@ def test_source_change_trigger_rebuild(pixi: Path, simple_workspace: Workspace)
8890 ],
8991 )
9092
91- conda_build_params = simple_workspace .debug_dir .joinpath ("conda_outputs_params.json" )
93+ conda_output_params = simple_workspace .debug_dir .joinpath ("conda_outputs_params.json" )
9294
93- assert conda_build_params .is_file ()
95+ assert conda_output_params .is_file ()
9496
9597 # Remove the conda build params to get a clean state
96- conda_build_params .unlink ()
98+ conda_output_params .unlink ()
9799
98100 # Touch the recipe
99101 simple_workspace .recipe_path .touch ()
@@ -109,7 +111,7 @@ def test_source_change_trigger_rebuild(pixi: Path, simple_workspace: Workspace)
109111 )
110112
111113 # Touching the recipe should trigger a rebuild and therefore create the file
112- assert conda_build_params .is_file ()
114+ assert conda_output_params .is_file ()
113115
114116
115117def test_project_model_change_trigger_rebuild (
0 commit comments