Commit graph

106 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
996f7b0432
refactor: rename test files to clarify API-only scope
Rename roasters.rs to roasters_api.rs and roasts.rs to roasts_api.rs
to make it clear these files only test the /api/v1 endpoints, not the
page endpoints.

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:25 +00:00
copilot-swe-agent[bot]
807f438a82
test: remove pagination and sorting tests
Remove pagination and sorting tests from roasters and roasts test
files as these will be addressed in a future pull request.

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:25 +00:00
copilot-swe-agent[bot]
05d856a41d
refactor: move server tests to standalone module
Move tests/server.rs to tests/server/main.rs and update module
paths to make the server tests more self-contained. All test
imports now use crate::helpers instead of crate::server::helpers.

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:24 +00:00
copilot-swe-agent[bot]
1937981db3
fix: remove duplicate tokio dev-dependency
Tokio is already included in the main dependencies, no need to
duplicate it in dev-dependencies.

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:24 +00:00
copilot-swe-agent[bot]
b077de1491
refactor: improve test helpers and test data quality
- Extract roaster creation into reusable helper functions
- Add create_test_roaster_with_name for flexible roaster creation
- Replace generic 'Test' values with more descriptive test data
- Reduce code duplication in roast tests

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:23 +00:00
copilot-swe-agent[bot]
52301e64b9
test: add wiremock dependency and test infrastructure
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:21 +00:00