Skip to content

Commit 08f1467

Browse files
committed
tests: rework some assertion checks
Cleanup some assertion checks to better compare between expected and value. Signed-off-by: James Knight <[email protected]>
1 parent a5422e2 commit 08f1467

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/unit-tests/test_config_postfix_formatting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def test_postfix_hash_fixing_name_conflict(self):
114114
out_dir = self.build(self.dataset, config=config)
115115
with parse('index', out_dir) as data:
116116
page_refs = data.find_all('ri:page')
117-
assert len(page_refs) == 2
117+
self.assertEqual(len(page_refs), 2)
118+
118119
self.assertEqual(
119120
page_refs[0]['ri:content-title'], 'readme -cef4211633')
120121
self.assertEqual(

tests/unit-tests/test_confluence_mentions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_storage_confluence_mention_role_replacing(self):
7979

8080
with parse('index', out_dir) as data:
8181
links = data.find_all('ac:link')
82-
self.assertTrue(len(links) >= 3)
82+
self.assertGreaterEqual(len(links), 3)
8383

8484
# ##########################################################
8585
# Replaced ID mention

0 commit comments

Comments
 (0)