-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write a test for function create() of BankViewSet class to verify a bank detail using node identifier #103
Comments
@pgeorge2 Please explain it more. |
@YashovardhanSingh sure. Let me know if you need more information or clarification. |
from rest_framework.reverse import reverse //these are necessary imports for tests //and next, test assertions. First ones: //Second one: |
Create a test called test_bank_detail by taking reference of test_bank_patch method.
Write the test at following location.
https://github.com/thenewboston-developers/Validator/blob/master/v1/banks/tests/bank.py
Hint: as mentioned, to create a test, you can take reference of test_banks_patch method and pass the dummy data in
generate_signed_request
method with expected status code as 200 and verify the response by comparingresponse
andbank_fake_data
The text was updated successfully, but these errors were encountered: