-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathpytest.ini
More file actions
48 lines (40 loc) · 2.66 KB
/
pytest.ini
File metadata and controls
48 lines (40 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[pytest]
log_cli = 1
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format=%Y-%m-%d %H:%M:%S
addopts = --junit-xml=build/test-results/pytest-results.xml
filterwarnings =
# Treat python warnings as errors in pytest (following PyAirbyte pattern)
error
# Ignore these specific warnings that are expected/acceptable:
# CDK experimental features - already in use, safe to ignore
# Occurs in: airbyte_cdk/sources/declarative/resolvers/config_components_resolver.py:46
ignore:This class is experimental. Use at your own risk.
# IncrementalMixin deprecation warnings - deprecated as of CDK v0.87.0 in favor of CheckpointMixin
# Occurs in: airbyte_cdk/sources/file_based/stream/default_file_based_stream.py:43
# Occurs in: unit_tests/sources/mock_server_tests/mock_source_fixture.py:65
ignore:Deprecated as of CDK version 0.87.0. Deprecated in favor of the `CheckpointMixin`:DeprecationWarning
# jsonschema import deprecation - Validator should be imported from jsonschema.protocols instead
# Occurs in: airbyte_cdk/sources/utils/transform.py:23
ignore:Importing Validator directly from the jsonschema package is deprecated:DeprecationWarning:airbyte_cdk.sources.utils.transform
# Python logging deprecation - logger.warn() method deprecated in favor of logger.warning()
# Occurs in: unit_tests/test_logger.py:81 (test intentionally uses deprecated method)
ignore:The 'warn' method is deprecated, use 'warning' instead:DeprecationWarning
# HttpRequester field deprecation warnings - path and url_base fields deprecated in favor of url field
# Occurs during connector builder test execution
ignore:Component type.*HttpRequester.*Field.*is deprecated:DeprecationWarning
# Unknown pytest markers - markers used in tests but not declared in pytest.ini
# Occurs in: various test files using image_tests and other custom markers
ignore::pytest.PytestUnknownMarkWarning
# Pytest infrastructure warnings - test framework related, safe to ignore
# PytestUnraisableExceptionWarning occurs when tests have unclosed resources (like file handles)
# Occurs in: unit_tests/destinations/test_destination.py::TestRun::test_run_write and similar tests
ignore::pytest.PytestUnraisableExceptionWarning
# PluggyTeardownRaisedWarning occurs during pytest plugin teardown processes
# Occurs during test cleanup phases, related to pytest plugin infrastructure
ignore::pluggy.PluggyTeardownRaisedWarning
markers =
slow: mark tests as slow
asyncio: mark test as asyncio
requires_creds: mark test as requiring credentials