add test fixtures for database-backed tests

Offen
#577 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
database, testing

Rechercherichtung

Read the existing PRs mentioned for the materialized view comparator and startup behavior to see what database setup they already need. Then inspect the pytest configuration and current test fixtures to identify a reusable way to provide database sessions, including a blank database. Done means database-backed tests can share that fixture system; the issue does not name specific files or tests.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

database devops help wanted testing

Several areas of the app could use unit testing that is backed by a database fixture:

  • testing the materialized view comparator to make sure things work for alembic migrations
  • testing the startup behavior to make sure the DB is correctly populated

We should have test fixtures in pytest that can provide database sessions for the tests that need them, even if its just a blank DB.

some work has already started in the respective PRs for the above things, but having a unified/reusable system for it would be nice

Vorherrschende Sprache
Python
Sterne
17
Forks
30
Ø Merge
6 Std. 16 Min.
Gemergte PRs (30 T.)
9

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus chaoss/CollectOSS

Alle Issues in chaoss/CollectOSS

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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