Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
310 views
by Contributing Tester (26 points)
retagged by
I have been working on a django rest framework project. for testing purpose I used factory-boy for models and django-rest assured for API test

from rest_assured.testcases import ReadWriteRESTAPITestCaseMixin, BaseRESTAPITestCase
from . import factories

# Create your tests here.

class AttendanceAPI(ReadWriteRESTAPITestCaseMixin, BaseRESTAPITestCase):
    # this is the base_name generated by the DefaultRouter
    base_name = 'event'
    factory_class = factories.Event
    # this is the user that will be authenticated for testing
    # user_factory = factories.User
    update_data = {'rating': 5}

Now I want to use model_mommy for the model object creation

how should I proceed? just replacing the factories with with model mommy object?

1 Answer

0 like 0 dislike
by
selected by


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...