aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_report.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-10 16:50:39 +0200
committerDanilo M. <danix@danix.xyz>2026-09-10 16:50:39 +0200
commitb054b3da76bd995cde1e5c1480ef36dbba4eb375 (patch)
tree69a65fa45f4600f5351c2606ded745e939b1900f /tests/test_report.py
parent6593d2596f5d3df0da60a4e083b8097c8539b14e (diff)
downloadabusectl-b054b3da76bd995cde1e5c1480ef36dbba4eb375.tar.gz
abusectl-b054b3da76bd995cde1e5c1480ef36dbba4eb375.zip
test: move the __main__ block to the end of the file
It sat above four test classes, so a direct `python3 tests/test_report.py` would have run only what was defined before it. Nothing was hidden under `unittest discover`, which is how the suite is run, and a direct run fails on the import path anyway, but three classes from the current plan were appended below it and the next one would have been too. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0176FYdVfpzUq8S9jecqQqL6
Diffstat (limited to 'tests/test_report.py')
-rw-r--r--tests/test_report.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_report.py b/tests/test_report.py
index c0fe0b0..0029c1c 100644
--- a/tests/test_report.py
+++ b/tests/test_report.py
@@ -1988,9 +1988,6 @@ class Writing(unittest.TestCase):
self.assertIn("destinations", result)
-if __name__ == "__main__":
- unittest.main()
-
class PersonalisedSubject(unittest.TestCase):
"""The documented limit, pinned so a later change has to face it.
@@ -2185,3 +2182,5 @@ class GenerateWritesVendorRows(unittest.TestCase):
self.assertEqual([row["kind"] for row in out["destinations"]],
["email"])
+if __name__ == "__main__":
+ unittest.main()