mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00
add pytest.ini and init in tests
This commit is contained in:
parent
84f620437d
commit
67752931f1
0
core/tests/__init__.py
Normal file
0
core/tests/__init__.py
Normal file
47
pytest.ini
Normal file
47
pytest.ini
Normal file
@ -0,0 +1,47 @@
|
||||
[pytest]
|
||||
# Async settings
|
||||
asyncio_mode = auto
|
||||
asyncio_default_fixture_loop_scope = function
|
||||
|
||||
# Test file patterns
|
||||
python_files = test_*.py
|
||||
python_classes = Test*
|
||||
python_functions = test_*
|
||||
|
||||
# Test paths - ensure this points to your test directory relative to pytest.ini location
|
||||
testpaths = tests
|
||||
|
||||
# Markers
|
||||
markers =
|
||||
integration: marks tests as integration tests
|
||||
api: marks tests as API tests
|
||||
sdk: marks tests as SDK tests
|
||||
unit: marks tests as unit tests
|
||||
|
||||
# Output settings
|
||||
addopts =
|
||||
-v
|
||||
-s
|
||||
--showlocals
|
||||
--tb=short
|
||||
|
||||
# Logging
|
||||
log_cli = true
|
||||
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
|
||||
|
||||
# Python path - ensure core and sdk are in path
|
||||
pythonpath =
|
||||
.
|
||||
../sdks/python
|
||||
|
||||
# Directories to ignore
|
||||
norecursedirs =
|
||||
.*
|
||||
build
|
||||
dist
|
||||
*.egg
|
||||
venv
|
||||
env
|
||||
.venv
|
Loading…
x
Reference in New Issue
Block a user