Skip to content

Commit 5c38976

Browse files
test: assert export_count absent from export state response
Address PR review: add negative assertions so re-introducing the legacy alias fails the suite, and reference PR #60 in the CHANGELOG removal note.
1 parent 2691a6f commit 5c38976

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1919

2020
### Removed
2121

22-
- `export_count` on `GET /api/export/state` — use `last_export_session_count` (deprecated since policy PR; bundled SPA updated in same release)
22+
- `export_count` on `GET /api/export/state` — use `last_export_session_count` (deprecated in PR #60 / [deprecation policy](docs/deprecation-policy.md); bundled SPA updated in same release)
2323

2424
[Unreleased]: https://github.com/cppalliance/claude-code-chat-browser/compare/f70505982d435f8b1f754cb18c0c9f65609f11b4...HEAD

tests/test_api_routes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def test_export_state_defaults(client_empty):
7171
assert resp.status_code == 200
7272
body = resp.get_json()
7373
assert "last_export_session_count" in body
74+
assert "export_count" not in body
7475

7576

7677
def test_bulk_export_empty_projects_returns_422(client_empty):

tests/test_export_api_bulk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@ def test_export_state_json_fields(isolated_state):
8686
assert resp.status_code == 200
8787
body = resp.get_json()
8888
assert body["last_export_session_count"] == 5
89+
assert "export_count" not in body

0 commit comments

Comments
 (0)