Skip to content

Commit f6d12f4

Browse files
committed
Fix tests
1 parent 4b85a3c commit f6d12f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from assemblyline.common.compat_tag_map import v3_lookup_map, tag_map, UNUSED
2020
from assemblyline.common.dict_utils import flatten, unflatten, recursive_update, get_recursive_delta
2121
from assemblyline.common.entropy import calculate_partition_entropy
22-
from assemblyline.common.heuristics import InvalidHeuristicException, service_heuristic_to_result_heuristic
22+
from assemblyline.common.heuristics import InvalidHeuristicException, HeuristicHandler
2323
from assemblyline.common.hexdump import hexdump
2424
from assemblyline.common.identify import fileinfo
2525
from assemblyline.common.isotime import now_as_iso, iso_to_epoch, epoch_to_local, local_to_epoch, epoch_to_iso, now, \
@@ -234,7 +234,7 @@ def test_heuristics_valid():
234234
score_map=score_map
235235
)
236236

237-
result_heur, _ = service_heuristic_to_result_heuristic(deepcopy(service_heur), heuristics)
237+
result_heur, _ = HeuristicHandler().service_heuristic_to_result_heuristic(deepcopy(service_heur), heuristics)
238238
assert result_heur is not None
239239
assert service_heur['heur_id'] == result_heur['heur_id']
240240
assert service_heur['score'] != result_heur['score']
@@ -250,7 +250,7 @@ def test_heuristics_valid():
250250

251251
def test_heuristics_invalid():
252252
with pytest.raises(InvalidHeuristicException):
253-
service_heuristic_to_result_heuristic({'heur_id': "my_id"}, {})
253+
HeuristicHandler().service_heuristic_to_result_heuristic({'heur_id': "my_id"}, {})
254254

255255

256256
def test_hexdump():

0 commit comments

Comments
 (0)