From 5aba81529f0f03857a79cc63c7858d8c98d9d577 Mon Sep 17 00:00:00 2001 From: Alex Chantavy Date: Wed, 13 Sep 2023 12:52:30 -0700 Subject: [PATCH] fix tests --- .../cartography/intel/aws/inspector/test_inspector_sync.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/integration/cartography/intel/aws/inspector/test_inspector_sync.py b/tests/integration/cartography/intel/aws/inspector/test_inspector_sync.py index 519415232..1314bd8eb 100644 --- a/tests/integration/cartography/intel/aws/inspector/test_inspector_sync.py +++ b/tests/integration/cartography/intel/aws/inspector/test_inspector_sync.py @@ -72,6 +72,12 @@ def test_sync_inspector_network_findings(mock_get, neo4j_session): def test_sync_inspector_ec2_package_findings(mock_get, neo4j_session): # Arrange boto3_session = MagicMock() + # Remove everything previously put in the test graph since the fixture scope is set to module and not function. + neo4j_session.run( + """ + MATCH (n) DETACH DELETE n; + """, + ) # Add some fake accounts neo4j_session.run( """