Changes between Initial Version and Version 1 of Ticket #23584, comment 12
- Timestamp:
- 2024-04-03T22:46:28+02:00 (23 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23584, comment 12
initial v1 5 5 Yep. I don't want to make the tests dependent upon server state. 6 6 > How will it work when we change the logic in the code to e.g. retrieve more or other data? 7 That is where the `(nodes|ways|relations).json` files come in; they make the tests more robust against changing the order of fetches via the `ChangesetReverterTest.(|Multiple)PrimitiveTransformer` classes. Those two classes look for api requests (examples: `/:type/:id/:version` and `/:types?:types=:idversion` and return the appropriate responses read from the json files. 7 That is where the `(nodes|ways|relations).json` files come in; they make the tests more robust against changing the order of fetches via the `ChangesetReverterTest.(|Multiple)PrimitiveTransformer` classes. Those two classes look for api requests (examples: `/:type/:id/:version` and `/:types?:types=:idversion`) and return the appropriate responses read from the json files. 8 8 9 9 Otherwise, if we completely change the API calls, I'll have to redo the transformers and json. But I ''probably'' won't have to.


