Skip to content

Commit e137128

Browse files
committed
test: expect CodeBundleError in build_code_bundle outside-root test
Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com>
1 parent a0a4e6f commit e137128

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/flyte/code_bundle/test_build_code_bundle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
build_code_bundle,
2929
build_code_bundle_from_relative_paths,
3030
)
31+
from flyte.errors import CodeBundleError
3132

3233
TESTDATA_ROOT = Path(__file__).parent / "testdata"
3334

@@ -430,7 +431,7 @@ async def test_build_code_bundle_include_outside_source_raises():
430431
outside_file = Path(tmp_outside) / "stray.txt"
431432
outside_file.write_text("oops")
432433

433-
with pytest.raises(ValueError, match="outside the bundle root"):
434+
with pytest.raises(CodeBundleError, match="outside the bundle root"):
434435
await build_code_bundle(
435436
from_dir=layout,
436437
dryrun=True,

0 commit comments

Comments
 (0)