add test fixtures for database-backed tests

Đang mở
#577 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
database, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
17
Fork
30
Merge trung bình
6 giờ 16 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của chaoss/CollectOSS

Tất cả issue của chaoss/CollectOSS

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.