gofractally / psibase

Open source protocol enabling communities to easily self-host web applications
https://docs.psibase.io
MIT License
28 stars 7 forks source link

refactoring rust service unit testing #814

Closed James-Mart closed 2 months ago

James-Mart commented 3 months ago

This PR adds some helpful abstractions that improve the readability and writeability of the unit tests in the identity service. Over time, if these abstractions prove sufficiently useful & generic in multiple contexts, then perhaps they will migrate into the tester library itself.

This PR also adds support to the rust tester for is_auto_block_start, which is already supported by the C++ tester.

Note: This doesn't change the logic in any of the identity unit tests, except for the removal of a few unnecessary tests within test_reject_invalid_scores.