Skip to content

Commit 879d8a4

Browse files
fix bad filter testcase 2
1 parent 64e6070 commit 879d8a4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

python/cbxp/cbxp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ def cbxp(
7373
)
7474
if response["return_code"]:
7575
raise CBXPError(response["return_code"], control_block)
76-
if response["result_json"] == {} and filter_key != "":
76+
if response["result_json"] == "null" and filter_key != "":
7777
raise CBXPError(CBXPErrorCode.NO_FILTER_MATCH.value, control_block)
7878
return json.loads(response["result_json"])

tests/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ def test_cbxp_raises_cbxp_error_if_filter_uses_non_included_control_block(
267267
):
268268
with self.assertRaises(CBXPError) as e:
269269
cbxp(
270-
"psa", control_block_filter={"cvt.asvt.ascb.assb.assbjbni": "MASTER "}
270+
"psa",
271+
control_block_filter={"cvt.asvt.ascb.assb.assbjbni": "MASTER "},
271272
)
272273
self.assertEqual("A bad filter was provided", str(e.exception))
273274

0 commit comments

Comments
 (0)