thenewboston-blockchain / Bank

Bank for thenewboston digital currency.
https://thenewboston.com
MIT License
87 stars 42 forks source link

Write a test to validate unique constraint of confirmation_validator and primary_validator together for InvalidBlock #109

Closed pgeorge2 closed 3 years ago

pgeorge2 commented 3 years ago

Write a test called test_confirmation_and_primary_validator_post_400_unique_recipients. Pass the dummy data and verify 400 status code along with the unique constraint error message. Refer InvalidBlockViewSet view and InvalidBlock model.

Hint: Refer below link for reference. https://github.com/thenewboston-developers/Bank/blob/14df0677f536e60518363b74c172bee0e21353d9/v1/blocks/tests/block.py#L46

DucPhamTV commented 3 years ago

I take this. I will reuse code changes in #115 . So I will open PR after #115 is merged.