googleapis / googleapis/google-cloud-python

[async rest] Document how to see skipped tests

Đang mở
#16,258 1 bình luận 0 reaction 1 người được giao Được @ohmayr nhận Xem trên GitHub
priority: p3 type: process
Ngôn ngữ chính
Python
Star
5.4k
Fork
1.8k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
122

Mô tả

Currently, we skip tests for async REST in the following way:

```
if not HAS_ASYNC_REST_EXTRA:
pytest.skip("the library must be installed with the `async_rest` extra to test this feature.")
```

However, the message does not show up when the test is skipped during a nox session.

Investigate and document how to see the skip messages when a test is run in a nox session and skipped using `pytest.skip`. In some cases we should use mark.skipif: https://docs.pytest.org/en/stable/reference/reference.html#pytest-mark-skipif-ref.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.