2222def test_conda ():
2323 """Tests the builder-agnostic API with an environment.yml file."""
2424 env = (
25- appose
26- .file (str (TEST_RESOURCES / "cowsay.yml" ))
25+ appose .file (str (TEST_RESOURCES / "cowsay.yml" ))
2726 .base ("target/envs/conda-cowsay" )
2827 .log_debug ()
2928 .build ()
@@ -35,8 +34,7 @@ def test_conda():
3534def test_pixi ():
3635 """Tests building from a pixi.toml file."""
3736 env = (
38- appose
39- .pixi ()
37+ appose .pixi ()
4038 .file (str (TEST_RESOURCES / "cowsay-pixi.toml" ))
4139 .base ("target/envs/pixi-cowsay" )
4240 .log_debug ()
@@ -49,8 +47,7 @@ def test_pixi():
4947def test_pixi_builder_api ():
5048 """Tests the programmatic builder API for pixi."""
5149 env = (
52- appose
53- .pixi ()
50+ appose .pixi ()
5451 .conda ("python>=3.8" , "appose" )
5552 .pypi ("cowsay==6.1" )
5653 .base ("target/envs/pixi-cowsay-builder" )
@@ -79,8 +76,7 @@ def test_pixi_appose_requirement():
7976
8077 with pytest .raises (Exception ): # Should raise IllegalStateException equivalent
8178 (
82- appose
83- .pixi ()
79+ appose .pixi ()
8480 .conda ("python" )
8581 .pypi ("cowsay==6.1" )
8682 .base (base )
@@ -92,8 +88,7 @@ def test_pixi_appose_requirement():
9288def test_pixi_pyproject ():
9389 """Tests building from a pyproject.toml with pixi config."""
9490 env = (
95- appose
96- .pixi ()
91+ appose .pixi ()
9792 .file (str (TEST_RESOURCES / "cowsay-pixi-pyproject.toml" ))
9893 .base ("target/envs/pixi-cowsay-pyproject" )
9994 .log_debug ()
@@ -119,8 +114,7 @@ def test_content_api():
119114"""
120115
121116 env = (
122- appose
123- .pixi ()
117+ appose .pixi ()
124118 .content (pixi_toml )
125119 .base ("target/envs/pixi-content-test" )
126120 .log_debug ()
@@ -144,11 +138,7 @@ def test_content_environment_yml():
144138"""
145139
146140 env = (
147- appose
148- .content (env_yml )
149- .base ("target/envs/content-env-yml" )
150- .log_debug ()
151- .build ()
141+ appose .content (env_yml ).base ("target/envs/content-env-yml" ).log_debug ().build ()
152142 )
153143
154144 assert isinstance (env .builder (), PixiBuilder )
@@ -162,8 +152,7 @@ def test_build_installs_env():
162152 not only after the first pixi run invocation.
163153 """
164154 env = (
165- appose
166- .pixi ()
155+ appose .pixi ()
167156 .file (str (TEST_RESOURCES / "cowsay-pixi.toml" ))
168157 .base ("target/envs/pixi-build-installs-env" )
169158 .log_debug ()
@@ -181,8 +170,7 @@ def test_build_installs_env():
181170def test_pixi_environment_selection ():
182171 """Tests that .environment() selects a non-default pixi environment."""
183172 env = (
184- appose
185- .pixi ()
173+ appose .pixi ()
186174 .file (str (TEST_RESOURCES / "cowsay-multi-env.toml" ))
187175 .base ("target/envs/pixi-multi-env" )
188176 .environment ("alt" )
@@ -220,8 +208,7 @@ def test_content_pixi_toml():
220208"""
221209
222210 env = (
223- appose
224- .content (pixi_toml )
211+ appose .content (pixi_toml )
225212 .base ("target/envs/content-pixi-toml" )
226213 .log_debug ()
227214 .build ()
0 commit comments