@@ -48,7 +48,8 @@ def test_config_file():
4848def test_entrypoint_file ():
4949 """Create a temporary test entrypoint script with config.json."""
5050 with tempfile .NamedTemporaryFile (suffix = ".py" , delete = False ) as temp :
51- entrypoint_content = textwrap .dedent ("""
51+ entrypoint_content = textwrap .dedent (
52+ """
5253 # Test entrypoint
5354 import os
5455 import sys
@@ -71,7 +72,8 @@ def test_entrypoint_file():
7172 if config.writer_config else None
7273 )
7374 f.write(f"Writer type: {writer_type}\\ n")
74- """ )
75+ """
76+ )
7577 temp .write (entrypoint_content .encode ("utf-8" ))
7678 temp_name = temp .name
7779
@@ -163,14 +165,16 @@ def test_run_entrypoint_with_dependencies():
163165
164166 # Create a temp entrypoint that uses the dependency
165167 with tempfile .NamedTemporaryFile (suffix = ".py" , delete = False ) as temp :
166- entrypoint_content = textwrap .dedent ("""
168+ entrypoint_content = textwrap .dedent (
169+ """
167170 # Test entrypoint with dependency
168171 import test_dependency
169172
170173 # Store dependency value in a file to check later
171174 with open("dependency_output.txt", "w") as f:
172175 f.write(f"Dependency value: {test_dependency.TEST_CONSTANT}\\ n")
173- """ )
176+ """
177+ )
174178 temp .write (entrypoint_content .encode ("utf-8" ))
175179 entrypoint_file = temp .name
176180
@@ -239,7 +243,8 @@ class TestDataspaceScenarios:
239243 def test_run_entrypoint_with_default_dataspace (self ):
240244 """Test that run_entrypoint sets dataspace='default' correctly."""
241245 with tempfile .NamedTemporaryFile (suffix = ".py" , delete = False ) as temp :
242- entrypoint_content = textwrap .dedent ("""
246+ entrypoint_content = textwrap .dedent (
247+ """
243248 # Test entrypoint
244249 from datacustomcode.config import config
245250 with open("dataspace_output.txt", "w") as f:
@@ -255,7 +260,8 @@ def test_run_entrypoint_with_default_dataspace(self):
255260 )
256261 f.write(f"Reader dataspace: {rds}\\ n")
257262 f.write(f"Writer dataspace: {wds}\\ n")
258- """ )
263+ """
264+ )
259265 temp .write (entrypoint_content .encode ("utf-8" ))
260266 entrypoint_file = temp .name
261267
@@ -290,7 +296,8 @@ def test_run_entrypoint_with_custom_dataspace(self):
290296 """Test that run_entrypoint sets custom dataspace correctly."""
291297 custom_dataspace = "dataspace-1"
292298 with tempfile .NamedTemporaryFile (suffix = ".py" , delete = False ) as temp :
293- entrypoint_content = textwrap .dedent ("""
299+ entrypoint_content = textwrap .dedent (
300+ """
294301 # Test entrypoint
295302 from datacustomcode.config import config
296303 with open("dataspace_output.txt", "w") as f:
@@ -306,7 +313,8 @@ def test_run_entrypoint_with_custom_dataspace(self):
306313 )
307314 f.write(f"Reader dataspace: {rds}\\ n")
308315 f.write(f"Writer dataspace: {wds}\\ n")
309- """ )
316+ """
317+ )
310318 temp .write (entrypoint_content .encode ("utf-8" ))
311319 entrypoint_file = temp .name
312320
0 commit comments