add test fixtures for database-backed tests

Abierto
#577 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
database, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
17
Forks
30
Merge medio
6 h 16 min
PR fusionados (30 d)
9

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de chaoss/CollectOSS

Todos los issues de chaoss/CollectOSS

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.