Automate post-import refresh and validation workflow

This commit is contained in:
Jason Thistlethwaite
2026-05-04 09:49:47 -04:00
parent fba494dada
commit faad70872b
13 changed files with 995 additions and 136 deletions
+23
View File
@@ -0,0 +1,23 @@
import unittest
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
POST_IMPORT_SCRIPTS = [
ROOT / "post_import_refresh.py",
ROOT / "stage_post_import_payload.py",
ROOT / "reset_helpdesk_mail_settings.py",
ROOT / "validate_test_instance.py",
ROOT / "redmine_outbox_worker.py",
]
class Python36CompatTest(unittest.TestCase):
def test_post_import_scripts_do_not_use_subprocess_text_keyword(self):
for path in POST_IMPORT_SCRIPTS:
with self.subTest(path=path.name):
self.assertNotIn("text=True", path.read_text())
if __name__ == "__main__":
unittest.main()