Changes between Initial Version and Version 1 of Ticket #23584, comment 12


Ignore:
Timestamp:
2024-04-03T22:46:28+02:00 (23 months ago)
Author:
taylor.smock

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23584, comment 12

    initial v1  
    55Yep. I don't want to make the tests dependent upon server state.
    66> 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.
     7That 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.
    88
    99Otherwise, if we completely change the API calls, I'll have to redo the transformers and json. But I ''probably'' won't have to.