Automate post-import refresh and validation workflow
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user