add test fixtures for database-backed tests

Aberta
#577 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
database, testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Python
Estrelas
17
Forks
30
Merge médio
6h 16min
PRs com merge (30d)
9

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de chaoss/CollectOSS

Todas as issues de chaoss/CollectOSS

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.