[WEB-3707] pytest based test suite for apiserver (#7010)

* pytest bases tests for apiserver

* Trimmed spaces

* Updated .gitignore for pytest local files
This commit is contained in:
Dheeraj Kumar Ketireddy 2025-05-26 15:26:26 +05:30 committed by GitHub
parent 4e485d6402
commit 78cc32765b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 1546 additions and 290 deletions

17
apiserver/pytest.ini Normal file
View file

@ -0,0 +1,17 @@
[pytest]
DJANGO_SETTINGS_MODULE = plane.settings.test
python_files = test_*.py
python_classes = Test*
python_functions = test_*
markers =
unit: Unit tests for models, serializers, and utility functions
contract: Contract tests for API endpoints
smoke: Smoke tests for critical functionality
slow: Tests that are slow and might be skipped in some contexts
addopts =
--strict-markers
--reuse-db
--nomigrations
-vs