Skip to content

Commit a026d31

Browse files
raise ProgrammingError for invalid id
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 3becefe commit a026d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_sea_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def test_command_management(
486486
)
487487

488488
# Test get_query_state with invalid ID
489-
with pytest.raises(ValueError) as excinfo:
489+
with pytest.raises(ProgrammingError) as excinfo:
490490
sea_client.get_query_state(thrift_command_id)
491491
assert "Not a valid SEA command ID" in str(excinfo.value)
492492

0 commit comments

Comments
 (0)