aiondemand / aiondemand/AIOD-rest-api

Use same database setup logic in tests and production

Offen
#393 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
36
Forks
77
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

During #392 I found out that deletion triggers never got registered in the database.
However, tests relied on them still worked because they relied on separately implemented database construction logic (which correctly set up the `after_create` triggers _before_ creating the database tables).
This would have been caught much earlier if tests and production had shared the same logic for constructing the tables and triggers.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.