Skip to content

Commit b2a8867

Browse files
committed
fix tests
1 parent 54b4737 commit b2a8867

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test/test_basic_sin.py

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

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

test/test_image_plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def plot2():
5151

5252

5353
@pytest.mark.parametrize(
54-
'plot, phash', [
54+
'plot, reference_phash', [
5555
(plot1, '455361ec211d72fb'),
5656
(plot2, '7558d3b30f634b06'),
5757
]
5858
)
59-
def test(plot, phash):
59+
def test(plot, reference_phash):
6060
phash = helpers.Phash(plot())
61-
assert phash.phash == phash, phash.get_details()
61+
assert phash.phash == reference_phash, phash.get_details()
6262
return

test/test_noise.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ def plot2():
4545

4646

4747
@pytest.mark.parametrize(
48-
'plot, phash', [
48+
'plot, reference_phash', [
4949
(plot1, 'f55a0bb503fd0354'),
5050
(plot2, '5f5ca33da3816983'),
5151
]
5252
)
53-
def test(plot, phash):
53+
def test(plot, reference_phash):
5454
phash = helpers.Phash(plot())
55-
assert phash.phash == phash, phash.get_details()
55+
assert phash.phash == reference_phash, phash.get_details()
5656
return
5757

5858

0 commit comments

Comments
 (0)