generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathpytest.ini
More file actions
25 lines (22 loc) · 1.09 KB
/
pytest.ini
File metadata and controls
25 lines (22 loc) · 1.09 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
; Copyright (c) 2024, 2026, Oracle and/or its affiliates.
; Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl.
; spell-checker: disable
[pytest]
pythonpath = src tests
addopts = --disable-warnings --import-mode=importlib
filterwarnings =
ignore::DeprecationWarning
asyncio_default_fixture_loop_scope = function
; Test markers for selective test execution
; Usage examples:
; pytest -m "unit" # Run only unit tests
; pytest -m "integration" # Run only integration tests
; pytest -m "not slow" # Skip slow tests
; pytest -m "not db" # Skip tests requiring database
; pytest -m "unit and not slow" # Fast unit tests only
markers =
unit: Unit tests (mocked dependencies, fast execution)
integration: Integration tests (real components, may require external services)
slow: Slow tests (deselect with '-m "not slow"')
db: Tests requiring Oracle database container (deselect with '-m "not db"')
db_container: Alias for db marker - tests requiring database container