-
Notifications
You must be signed in to change notification settings - Fork 491
Expand file tree
/
Copy pathpytest.ini
More file actions
19 lines (16 loc) · 989 Bytes
/
pytest.ini
File metadata and controls
19 lines (16 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[pytest]
filterwarnings =
# Python 3.12+ deprecated datetime.utcnow() and utcfromtimestamp().
# Legacy App Engine and google-cloud-ndb libraries still use them internally,
# causing thousands of warnings during a test run.
ignore:.*utcfromtimestamp.*:DeprecationWarning
ignore:.*utcnow.*:DeprecationWarning
# The local datastore emulator uses ruamel.yaml with an 'unsafe' parsing method,
# which triggers a PendingDeprecationWarning in the datastore_index module.
ignore::PendingDeprecationWarning:google\.appengine\.datastore\.datastore_index
# Pytest incorrectly tries to collect the 'test_app' fixture/variable
# as a test function because its name starts with 'test_'.
ignore:.*cannot collect 'test_app'.*
# The ghapi library warns when running tests locally without a GitHub token.
# This is expected and safe to ignore during local development/testing.
ignore:.*Neither GITHUB_TOKEN nor GITHUB_JWT_TOKEN found.*:UserWarning