add pytest.ini and init in tests

This commit is contained in:
Adityavardhan Agrawal 2024-11-23 13:56:45 -05:00
parent 84f620437d
commit 67752931f1
2 changed files with 47 additions and 0 deletions

0
core/tests/__init__.py Normal file
View File

47
pytest.ini Normal file
View 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