better test bucket management

Đang mở
#813 0 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
testing

Hướng nghiên cứu

Start from the existing bucket_name pytest fixture and the tests that depend on it, and see how buckets are created and deleted there. Add a bucket_factory fixture that accepts creation parameters, tracks each bucket it makes, and deletes them all at teardown. Done when a test can call bucket_factory(...) several times with different configurations and no buckets remain afterward. The issue has no comments or linked work, so confirm the approach with maintainers before starting.

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

Mô tả

testing

We need to create a pytest factory which will produce fixtures (create buckets on demand), and once the test is over, the factory will delete all created buckets. Currently we pass fixture bucket_name to all tests, but 1) it creates only one bucket, while there should be many sometimes 2) it doesn't allow pass parameters to bucket creation, but in some tests we need non-default bucket configuration during creation. When passing bucket_factory to each test, the test will call bucket_factory(params), and this will create bucket and auto-clean after test.

Ngôn ngữ chính
Python
Star
638
Fork
138
Merge trung bình
8 giờ 27 phút
Pull request đã merge (30 ngày)
8

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 Backblaze/B2_Command_Line_Tool

Tất cả issue của Backblaze/B2_Command_Line_Tool

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.