Skip to content

Commit be531ed

Browse files
committed
fix the other tests
1 parent e899cac commit be531ed

33 files changed

+88
-37
lines changed

test/test_annotate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ def plot():
3838

3939
def test():
4040
phash = Phash(plot())
41-
assert phash.phash == 'ab8a79a1549654bg', phash.get_details()
41+
assert phash.phash == 'ab8a79a1549654be', phash.get_details()

test/test_barchart.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
rectangle patches witch are difficult to tell from other rectangle
66
patches that should not be plotted in PGFPlots (e.g. axis, legend)
77
'''
8-
from helpers import assert_phash
8+
from helpers import Phash
99

1010

1111
def plot():
@@ -30,4 +30,5 @@ def plot():
3030

3131

3232
def test():
33-
assert_phash(plot(), '5f09a9e6b172874a')
33+
phash = Phash(plot())
34+
assert phash.phash == '5f09a9e6b172874a', phash.get_details()

test/test_basic_sin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
from helpers import assert_phash
3+
from helpers import Phash
44

55
from matplotlib import pyplot as plt
66
from matplotlib import style
@@ -25,4 +25,5 @@ def plot():
2525

2626

2727
def test():
28-
assert_phash(plot(), '1f86e1f521c6e5c1')
28+
phash = Phash(plot())
29+
assert phash.phash == '1f86e1f521c6e5c1', phash.get_details()

test/test_boxplot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
external data in the file '' or '.tex')
88
See: https://github.com/nschloe/matplotlib2tikz/pull/134
99
'''
10-
import helpers
10+
from helpers import Phash
1111

1212

1313
def plot():
@@ -50,4 +50,5 @@ def plot():
5050

5151

5252
def test():
53-
helpers.assert_phash(plot(), '6be3e6b95e8000de')
53+
phash = Phash(plot())
54+
assert phash.phash == '6be3e6b95e8000de', phash.get_details()

test/test_colorbars.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,5 @@ def plot():
8484

8585

8686
# def test():
87-
# helpers.assert_phash(plot(), '')
87+
# phash = Phash(plot())
88+
# assert phash.phash == '6be3e6b95e8000de', phash.get_details()

test/test_dual_axis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
import helpers
3+
from helpers import Phash
44

55

66
def plot():
@@ -18,4 +18,5 @@ def plot():
1818

1919

2020
def test():
21-
helpers.assert_phash(plot(), '5382544c16bdde75')
21+
phash = Phash(plot())
22+
assert phash.phash == '5382544c16bdde75', phash.get_details()

test/test_errorband.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
import helpers
3+
from helpers import Phash
44

55

66
def plot():
@@ -22,4 +22,5 @@ def plot():
2222

2323

2424
def test():
25-
helpers.assert_phash(plot(), 'af2cd5922172772c')
25+
phash = Phash(plot())
26+
assert phash.phash == 'af2cd5922172772c', phash.get_details()

test/test_errorbar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ def plot():
2020

2121

2222
def test():
23-
helpers.assert_phash(plot(), 'a3435e25bea866b8')
23+
phash = helpers.Phash(plot())
24+
assert phash.phash == 'a3435e25bea866b8', phash.get_details()

test/test_fancy_colorbar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ def plot():
2020

2121

2222
def test():
23-
helpers.assert_phash(plot(), 'b733c9fc03dc4942')
23+
phash = helpers.Phash(plot())
24+
assert phash.phash == 'b733c9fc03dc4942', phash.get_details()

test/test_fancybox.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ def plot():
192192

193193

194194
def test():
195-
helpers.assert_phash(plot(), '9d2327dc23cdd81a')
195+
phash = helpers.Phash(plot())
196+
assert phash.phash == '9d2327dc23cdd81a', phash.get_details()
196197

197198

198199
if __name__ == '__main__':

0 commit comments

Comments
 (0)