Skip to content

Commit d66eb7a

Browse files
PoolitzerBibo-Joshi
andcommitted
Add Custom pytest Marker to Ease Development (python-telegram-bot#2628)
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
1 parent f5faacf commit d66eb7a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/CONTRIBUTING.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ Here's how to make a one-off code change.
8585

8686
- Please ensure that the code you write is well-tested.
8787

88+
- In addition to that, we provide the `dev` marker for pytest. If you write one or multiple tests and want to run only those, you can decorate them via `@pytest.mark.dev` and then run it with minimal overhead with `pytest ./path/to/test_file.py -m dev`.
89+
8890
- Don’t break backward compatibility.
8991

9092
- Add yourself to the AUTHORS.rst_ file in an alphabetical fashion.

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ filterwarnings =
3030
; Unfortunately due to https://github.com/pytest-dev/pytest/issues/8343 we can't have this here
3131
; and instead do a trick directly in tests/conftest.py
3232
; ignore::telegram.utils.deprecate.TelegramDeprecationWarning
33+
markers = dev: If you want to test a specific test, use this
3334

3435
[coverage:run]
3536
branch = True

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy