Skip to content

Commit b21ea99

Browse files
committed
Relax incorrect pyroma test
1 parent bab5d06 commit b21ea99

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Tests/test_pyroma.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
@unittest.skipIf(pyroma is None, "Pyroma is not installed")
1212
class TestPyroma(PillowTestCase):
13-
1413
def test_pyroma(self):
1514
# Arrange
1615
data = pyroma.projectdata.get_data(".")
@@ -19,12 +18,13 @@ def test_pyroma(self):
1918
rating = pyroma.ratings.rate(data)
2019

2120
# Assert
22-
if 'rc' in __version__:
23-
# Pyroma needs to chill about RC versions
24-
# and not kill all our tests.
25-
self.assertEqual(rating, (9, [
26-
"The package's version number does not comply with PEP-386."]))
21+
if "rc" in __version__:
22+
# Pyroma needs to chill about RC versions and not kill all our tests.
23+
self.assertEqual(
24+
rating,
25+
(9, ["The package's version number does not comply with PEP-386."]),
26+
)
2727

2828
else:
29-
# Should have a perfect score
30-
self.assertEqual(rating, (10, []))
29+
# Should have a near-perfect score
30+
self.assertEqual(rating, (9, ["Your package does not have license data."]))

0 commit comments

Comments
 (0)