anitab-forms-backend icon indicating copy to clipboard operation
anitab-forms-backend copied to clipboard

Create unit test for Create a Form API

Open isabelcosta opened this issue 4 years ago • 15 comments

Description

As a developer, I need have unit tests for each functionality, so that I can be confident when building a new feature, that there are no regression on the platform.

API: POST /api/form

The idea is to come with 3 unit tests to test this API. You may have to mock some information to properly test it.

Resources:

  • Writing tests for Django projects: resource 1 and resource 2
  • Postman documentation about this specific API: https://documenter.getpostman.com/view/11324046/Szzoaw1q?version=latest#fae4122b-fd56-4aeb-9771-97b05ff40a82

Acceptance Criteria

Update [Required]

  • [ ] Create 3 unit tests for POST /api/form API

Definition of Done

  • [ ] All of the required items are completed.
  • [x] Approval by 1 mentor.

Estimation

4 hours

isabelcosta avatar Feb 14 '21 13:02 isabelcosta

Hey @isabelcosta @codesankalp , can I take this issue?

sahil9001 avatar Feb 22 '21 04:02 sahil9001

@isabelcosta can I work on this issue ?

imperishableSecret avatar Feb 25 '21 10:02 imperishableSecret

@isabelcosta Can I add unit test and work on this issue?

b-thebest avatar Mar 01 '21 09:03 b-thebest

According to order, I will assign to @AnubhavHooda . If there is no updates within 3 days I can assign it to you @b-thebest :)

isabelcosta avatar Mar 02 '21 23:03 isabelcosta

Umm.. @isabelcosta According to order, I guess I asked it first, though there is no problem but still you gave it to the one who asked it secondly.

sahil9001 avatar Mar 03 '21 05:03 sahil9001

@Rahulm2310 @codesankalp

sahil9001 avatar Mar 03 '21 05:03 sahil9001

@sahil9001, As you are assigned to another issue, You can't be assigned to a new issue according to community contributing guidelines. You will get more issues to solve in the future. Don't worry much more about this.

codesankalp avatar Mar 03 '21 06:03 codesankalp

Any updates on this @AnubhavHooda ?

ashwinijha6 avatar Mar 07 '21 08:03 ashwinijha6

Hey @isabelcosta could I take up this issue ?

ashwinijha6 avatar Mar 08 '21 07:03 ashwinijha6

@AnubhavHooda Please update your progress? Or you want to unassign yourself?

codesankalp avatar Mar 08 '21 09:03 codesankalp

According to order, I will assign to @AnubhavHooda . If there is no updates within 3 days I can assign it to you @b-thebest :)

Looking forward to work on this issue as there is no update from @AnubhavHooda

b-thebest avatar Mar 08 '21 09:03 b-thebest

Unassigning @AnubhavHooda for not updating about the progress. Assigning @sahil9001. Happy Coding :rocket:

codesankalp avatar Mar 11 '21 10:03 codesankalp

@codesankalp @isabelcosta I apologize for the inconvenience caused due to me not updating about my progress.

imperishableSecret avatar Mar 13 '21 17:03 imperishableSecret

Hey @AnubhavHooda ! I think I won't be able to do this because of my exams, schedule is quite hectic, Can you take it?

sahil9001 avatar Mar 13 '21 17:03 sahil9001

@isabelcosta Please assign me as @sahil9001 is unable to continue with this issue

imperishableSecret avatar Mar 14 '21 06:03 imperishableSecret