Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and [Semantic V
- Cursor-based pagination for receipt listing endpoint (`GET /api/receipts/`). Supports
configurable page sizes via `?page_size=N` parameter (max 100 items).
- Receipt lines are now included in paginated receipt list responses via `prefetch_related()`.
- Certificate renewal endpoint (`IssueCertificateView`) - POST endpoint to issue/renew
device certificates using the `CertificateService.issue_certificate()` flow. Returns
success or detailed error responses when certificate issuance fails.

### Changed
- Monetary fields in models now use `DecimalField` instead of `FloatField` for precise financial
Expand Down
8 changes: 8 additions & 0 deletions fiscguy/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ def pytest_configure():
settings.configure(
INSTALLED_APPS=[
"django.contrib.contenttypes",
"django.contrib.auth",
"rest_framework",
"fiscguy",
],
DATABASES={
Expand All @@ -16,6 +18,12 @@ def pytest_configure():
}
},
SECRET_KEY="fake-key-for-tests",
ROOT_URLCONF="fiscguy.urls",
DEFAULT_AUTO_FIELD="django.db.models.BigAutoField",
REST_FRAMEWORK={
"DEFAULT_AUTHENTICATION_CLASSES": [],
"DEFAULT_PERMISSION_CLASSES": [],
},
)
django.setup()

Expand Down
Loading
Loading