brewlog/tests/server/main.rs
Jon Seager ad4ee2617a
refactor(tests): add generic server helpers and CRUD test macros
- Add `paste` dev-dependency for macro identifier concatenation
- Add `create_entity<P, R>()` generic helper, convert per-entity
  creation helpers to thin wrappers
- Add `define_crud_tests!` macro generating nonexistent-GET/DELETE-404,
  empty-list-200, malformed-JSON-400, and missing-fields-400 tests
- Apply macro to roasters, cafes, cups, and roasts API tests
2026-02-06 14:26:54 +00:00

18 lines
340 B
Rust

pub mod auth_api;
pub mod backup;
pub mod bags_api;
pub mod brews_api;
pub mod cafes_api;
pub mod checkin_api;
pub mod cups_api;
pub mod datastar;
pub mod extraction_api;
pub mod gear_api;
pub mod helpers;
pub mod nearby_api;
pub mod pages;
pub mod roasters_api;
pub mod roasts_api;
pub mod scan_api;
pub mod test_macros;
pub mod timeline;