Chemical-Curation / chemcurator_django

Backend services for chemical curation
https://api.chemreg.epa.gov
MIT License
1 stars 0 forks source link

endpoints for owners, externalContact for includes in ListSerializer #242

Open debboutr opened 3 years ago

debboutr commented 3 years ago

tests will need to be built for these new endpoints in a future ticket which has yet to be made. I have inherited the HyperLinkedModelSerializer to the UserSerializer and created the necessary views/urls here.

One of the current problems in testing that I have found is that the list_factory as it existed wasn't validating a required field of owners which will have to be ironed out here. I have a failing assert statement in a test to begin debugging. There is a bit of work to do with the factory.post_generation wrapper in the factory so that we always get an owner on a build or create.