Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
* Patched "plt.show()" calls. #41
Browse files Browse the repository at this point in the history
  • Loading branch information
garciparedes committed Sep 1, 2019
1 parent 3c23f1a commit fd693d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/test_storers/test_graph.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
from pathlib import Path
from unittest.mock import patch

import networkx as nx

Expand All @@ -25,7 +26,8 @@ def test_creation(self):
)
self.assertEqual(storer.result, self.result)

def test_store(self):
@patch("jinete.storers.plots.graph.plt.show")
def test_store(self, mocked_plt):
storer = jit.GraphPlotStorer(
result=self.result,
)
Expand Down
4 changes: 3 additions & 1 deletion tests/test_storers/test_set.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
from pathlib import Path
from unittest.mock import patch

import jinete as jit

Expand Down Expand Up @@ -29,7 +30,8 @@ def test_creation(self):
self.assertEqual(storer.result, self.result)
self.assertEqual(storer.storer_cls_set, storer_cls_set)

def test_store(self):
@patch("jinete.storers.plots.graph.plt.show")
def test_store(self, mocked_plt):
storer = jit.StorerSet(
result=self.result,
storer_cls_set={
Expand Down

0 comments on commit fd693d6

Please sign in to comment.