Skip to content

Commit

Permalink
export graph and do not remove neo4j service
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyAfik committed Dec 18, 2023
1 parent 2118dff commit 57fa9e6
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def setup_method(mocker, repo: Repo):
}
},
)
neo4j_service.stop()


@pytest.fixture
Expand Down Expand Up @@ -1093,17 +1092,6 @@ def test_create_content_graph_empty_repository(
create_content_graph(interface)
assert not interface.search()

def test_stop_content_graph(self):
"""
Given:
- A running content graph service.
When:
- Running neo4j_service.stop()
Then:
- Make sure no exception is raised.
"""
neo4j_service.stop()

def test_create_content_graph_incident_to_alert_scripts(
self, repo: Repo, tmp_path: Path, mocker
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def setup_method(mocker, repo):
}
},
)
neo4j_service.stop()


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def setup_method(mocker, repo):
bc.CONTENT_PATH = Path(repo.path)
mocker.patch.object(neo4j_service, "REPO_PATH", Path(repo.path))
mocker.patch.object(ContentGraphInterface, "repo_path", Path(repo.path))
neo4j_service.stop()


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def setup_method(mocker):
bc.CONTENT_PATH = GIT_PATH
mocker.patch.object(neo4j_service, "REPO_PATH", GIT_PATH)
mocker.patch.object(ContentGraphInterface, "repo_path", GIT_PATH)
mocker.patch.object(ContentGraphInterface, "export", return_value=None)
mocker.patch.object(ContentGraphInterface, "export_graph", return_value=None)
mocker.patch(
"demisto_sdk.commands.common.docker_images_metadata.get_remote_file_from_api",
return_value={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def setup_method(mocker, repo: Repo):
bc.CONTENT_PATH = Path(repo.path)
mocker.patch.object(ContentGraphInterface, "repo_path", Path(repo.path))
mocker.patch.object(neo4j_service, "REPO_PATH", Path(repo.path))
neo4j_service.stop()


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def setup_method(mocker, repo: Repo):
}
},
)
neo4j_service.stop()


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def setup_method(mocker):
}
},
)
neo4j_service.stop()


@pytest.fixture
Expand Down

0 comments on commit 57fa9e6

Please sign in to comment.