From b054b3da76bd995cde1e5c1480ef36dbba4eb375 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 10 Sep 2026 16:50:39 +0200 Subject: 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 Claude-Session: https://claude.ai/code/session_0176FYdVfpzUq8S9jecqQqL6 --- tests/test_report.py | 5 ++--- 1 file 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() -- cgit v1.2.3