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>
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>
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>
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>
- 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>