Skip to content

Commit

Permalink
Stop output generation
Browse files Browse the repository at this point in the history
  • Loading branch information
berroar committed Feb 21, 2024
1 parent c26f0ba commit ccd324f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ name = "pypi"
black = "*"
"flake8" = "*"
isort = "*"
pytest = "*"
pytest-cov = "*"
pytest-mock = "*"

[packages]
haralyzer = "*"
Expand All @@ -18,9 +21,6 @@ google-cloud-storage = "*"
pandas = "*"
matplotlib = "*"
slackclient = "*"
pytest = "*"
pytest-cov = "*"
pytest-mock = "*"
freezegun = "*"

[requires]
Expand Down
4 changes: 3 additions & 1 deletion tests/test_visualise_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ def test_plot_data_df(mocker, get_results_single_file):
assert_frame_equal(mock_plot_data.call_args[0][0], expected_data_frame)


def test_plot_data(get_results_single_file):
def test_plot_data(mocker, get_results_single_file):
dataframe = get_data_frame(get_results_single_file)
try:
graph_output = mocker.patch("matplotlib.pyplot.savefig")
plot_data(dataframe, 1)
assert graph_output.call_count == 1
except GraphGenerationFailed:
pytest.fail("Graph generation failed")

Expand Down

0 comments on commit ccd324f

Please sign in to comment.