File tree Expand file tree Collapse file tree
tests/flytekit/unit/core/image_spec Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -362,34 +362,34 @@ def test_with_builder_options():
362362
363363def test_noop_builder_updates_image_name_mapping ():
364364 from flytekit .image_spec .noop_builder import NoOpBuilder
365-
365+
366366 # Clear any existing mappings to ensure clean test state
367367 ImageBuildEngine ._IMAGE_NAME_TO_REAL_NAME .clear ()
368-
368+
369369 # Register NoOpBuilder
370370 ImageBuildEngine .register ("noop" , NoOpBuilder ())
371-
371+
372372 # Create an image spec with NoOpBuilder
373373 expected_real_name = "localhost:30000/test_image:latest"
374374 image_spec = ImageSpec (
375375 name = "test_image" ,
376376 builder = "noop" ,
377377 base_image = expected_real_name
378378 )
379-
379+
380380 # Get the image name before building
381381 img_name = image_spec .image_name ()
382-
382+
383383 # Build the image
384384 ImageBuildEngine .build (image_spec )
385-
385+
386386 # Verify that the mapping was created in _IMAGE_NAME_TO_REAL_NAME
387387 assert img_name in ImageBuildEngine ._IMAGE_NAME_TO_REAL_NAME
388-
388+
389389 # Verify the mapping value is correct
390390 actual_real_name = ImageBuildEngine ._IMAGE_NAME_TO_REAL_NAME [img_name ]
391391 assert actual_real_name == expected_real_name
392-
392+
393393 # Clean up
394394 del ImageBuildEngine ._REGISTRY ["noop" ]
395395 ImageBuildEngine ._IMAGE_NAME_TO_REAL_NAME .clear ()
You can’t perform that action at this time.
0 commit comments