Skip to content

Commit d0310cf

Browse files
committed
Adjust tests for rules export
1 parent 8300edd commit d0310cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_rules.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ def test_get_rule_cache() -> None:
153153

154154
def test_export_not_full() -> None:
155155
"""test_export_not_full"""
156-
rule_list = rules.export_all(endpoint=util.SQ, full=False)
156+
rule_list = rules.export(endpoint=util.SQ, export_settings={"FULL_EXPORT": False})
157157
assert len(rule_list["extended"]) > 0
158-
rule_list = rules.export_all(endpoint=util.SQ, full=True)
158+
rule_list = rules.export(endpoint=util.SQ, export_settings={"FULL_EXPORT": True})
159159
assert len(rule_list["extended"]) > 0
160160

161161

@@ -170,7 +170,7 @@ def test_get_nonexisting_rule() -> None:
170170

171171
def test_export_all() -> None:
172172
"""test_export_all"""
173-
rule_list = rules.export_all(endpoint=util.SQ, full=True)
173+
rule_list = rules.export(endpoint=util.SQ, export_settings={"FULL_EXPORT": True})
174174
if util.SQ.version() < (10, 0, 0) and util.SQ.edition() == "community":
175175
assert len(rule_list.get("standard", {})) > 2800
176176
else:

0 commit comments

Comments
 (0)