Skip to content

Commit b511967

Browse files
committed
TST: Make test more robust
1 parent ffb373d commit b511967

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/twined/test_twine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ def test_empty_twine(self):
3131
"""Ensures that an empty twine file can be loaded"""
3232
with self.assertLogs(level="DEBUG") as log:
3333
Twine(source="{}")
34-
self.assertEqual(len(log.output), 3)
35-
self.assertEqual(len(log.records), 3)
36-
self.assertIn("Detected source", log.output[0])
37-
self.assertIn("Validated", log.output[1])
34+
35+
log_output = "\n".join(log.output)
36+
self.assertIn("Detected source", log_output)
37+
self.assertIn("Validated", log_output)
3838

3939
def test_example_twine(self):
4040
"""Ensures that the example (full) twine can be loaded and validated"""

0 commit comments

Comments
 (0)