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
+18
View File
@@ -0,0 +1,18 @@
import unittest
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
MIGRATION = ROOT / "plugins" / "redmine_event_outbox" / "db" / "migrate" / "001_create_event_outbox_events.rb"
class EventOutboxMigrationTest(unittest.TestCase):
def test_create_table_migration_is_idempotent_for_imported_dev_clone(self):
source = MIGRATION.read_text()
self.assertIn("table_exists?(:event_outbox_events)", source)
self.assertIn("return if table_exists?(:event_outbox_events)", source)
if __name__ == "__main__":
unittest.main()