Skip to content

Commit d5695c6

Browse files
committed
fix test
1 parent 902a7d3 commit d5695c6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

unit_tests/manifest_server/routers/test_capabilities.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,34 @@ def test_capabilities_endpoint_exists(self):
1717
assert response.status_code == 200
1818

1919
def test_capabilities_custom_code_execution_false_by_default(self):
20-
"""Test that customCodeExecution is false by default when env var is not set."""
20+
"""Test that custom_code_execution is false by default when env var is not set."""
2121
with patch.dict(os.environ, {}, clear=True):
2222
response = client.get("/capabilities/")
2323
assert response.status_code == 200
2424

2525
data = response.json()
26-
assert "customCodeExecution" in data
27-
assert data["customCodeExecution"] is False
26+
assert "custom_code_execution" in data
27+
assert data["custom_code_execution"] is False
2828

2929
def test_capabilities_custom_code_execution_false_when_env_var_false(self):
30-
"""Test that customCodeExecution is false when env var is explicitly set to false."""
30+
"""Test that custom_code_execution is false when env var is explicitly set to false."""
3131
with patch.dict(os.environ, {"AIRBYTE_ENABLE_UNSAFE_CODE": "false"}):
3232
response = client.get("/capabilities/")
3333
assert response.status_code == 200
3434

3535
data = response.json()
36-
assert "customCodeExecution" in data
37-
assert data["customCodeExecution"] is False
36+
assert "custom_code_execution" in data
37+
assert data["custom_code_execution"] is False
3838

3939
def test_capabilities_custom_code_execution_true_when_env_var_true(self):
40-
"""Test that customCodeExecution is true when env var is set to true."""
40+
"""Test that custom_code_execution is true when env var is set to true."""
4141
with patch.dict(os.environ, {"AIRBYTE_ENABLE_UNSAFE_CODE": "true"}):
4242
response = client.get("/capabilities/")
4343
assert response.status_code == 200
4444

4545
data = response.json()
46-
assert "customCodeExecution" in data
47-
assert data["customCodeExecution"] is True
46+
assert "custom_code_execution" in data
47+
assert data["custom_code_execution"] is True
4848

4949
def test_capabilities_custom_code_execution_case_insensitive(self):
5050
"""Test that env var parsing is case insensitive."""
@@ -56,7 +56,7 @@ def test_capabilities_custom_code_execution_case_insensitive(self):
5656
assert response.status_code == 200
5757

5858
data = response.json()
59-
assert data["customCodeExecution"] is True
59+
assert data["custom_code_execution"] is True
6060

6161
def test_capabilities_custom_code_execution_invalid_values_default_to_false(self):
6262
"""Test that invalid env var values default to false."""
@@ -68,4 +68,4 @@ def test_capabilities_custom_code_execution_invalid_values_default_to_false(self
6868
assert response.status_code == 200
6969

7070
data = response.json()
71-
assert data["customCodeExecution"] is False
71+
assert data["custom_code_execution"] is False

0 commit comments

Comments
 (0)