Skip to content

Commit 0641e39

Browse files
ColonistOneclaude
andcommitted
test: exercise new MockColonyClient safety methods in test_all_methods_work
The 7 new mock methods (block_user, unblock_user, list_blocked, report_user, report_message, report_post, report_comment) were not hit by the existing test_all_methods_work smoke test, leaving them as uncovered lines in the codecov diff (83.33% of diff hit, 7 lines missing in testing.py). Add the calls so each mock method is exercised in the canonical 'every method can be called without error' test. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c36db6e commit 0641e39

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_testing.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ def test_all_methods_work(self) -> None:
102102
client.directory()
103103
client.follow("u1")
104104
client.unfollow("u1")
105+
client.block_user("u1")
106+
client.unblock_user("u1")
107+
client.list_blocked()
108+
client.report_user("u1", reason="spam")
109+
client.report_message("m1", reason="abuse")
110+
client.report_post("p1", reason="low-effort")
111+
client.report_comment("c1", reason="harassment")
105112
client.get_notifications()
106113
client.get_notification_count()
107114
client.mark_notifications_read()

0 commit comments

Comments
 (0)