Skip to content

Commit

Permalink
fix sql tests
Browse files Browse the repository at this point in the history
  • Loading branch information
subbyte committed Jul 28, 2024
1 parent a25c412 commit 21e046e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kestrel_interface_sqlalchemy/tests/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_find_event_to_entity(setup_sqlite_ecs_process_creation):
evs, explain, procs = session.execute(huntflow)
assert evs.shape[0] == 9 # all events

stmt = explain.graphlets[0].query.statement
stmt = explain.graphlets[0].action.statement
test_dir = os.path.dirname(os.path.abspath(__file__))
result_file = os.path.join(test_dir, "result_interface_find_event_to_entity.txt")
with open(result_file) as h:
Expand All @@ -187,7 +187,7 @@ def test_find_entity_to_event(setup_sqlite_ecs_process_creation):
"""
explain, e2 = session.execute(huntflow)

stmt = explain.graphlets[0].query.statement
stmt = explain.graphlets[0].action.statement
test_dir = os.path.dirname(os.path.abspath(__file__))
result_file = os.path.join(test_dir, "result_interface_find_entity_to_event.txt")
with open(result_file) as h:
Expand Down Expand Up @@ -223,7 +223,7 @@ def test_find_entity_to_entity(setup_sqlite_ecs_process_creation):
"""
explain, parents = session.execute(huntflow)

stmt = explain.graphlets[0].query.statement
stmt = explain.graphlets[0].action.statement
test_dir = os.path.dirname(os.path.abspath(__file__))
result_file = os.path.join(test_dir, "result_interface_find_entity_to_entity.txt")
with open(result_file) as h:
Expand Down

0 comments on commit 21e046e

Please sign in to comment.