Skip to content

Conversation

danieleades
Copy link
Contributor

this PR is derived from #180 , but i think it makes sense as an incremental improvement.

this PR

  • deduplicates the setup logic in the 'account' tests
  • modifiers the mock query matchers to no longer depend on the ordering of the query parameters

The second one is the most important, since this was adding an unnecessary constraint on the implementation (and forcing you to use BTreeMaps despite not actually needing a sorted heap).

@danieleades
Copy link
Contributor Author

my intention is to roll this out to the other tests as well

@danieleades danieleades force-pushed the tests/refactor/account branch from 42661a0 to 0c40279 Compare October 28, 2022 01:02
@danieleades danieleades marked this pull request as ready for review October 28, 2022 04:18
@danieleades danieleades force-pushed the tests/refactor/account branch from 0c40279 to 4ae5545 Compare November 2, 2022 21:37
@danieleades
Copy link
Contributor Author

i'll mark this a draft for now. I want to see how well this generalises to the other tests before committing to the approach

@danieleades danieleades marked this pull request as draft November 2, 2022 22:01
@danieleades danieleades marked this pull request as ready for review December 15, 2022 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant