How to write unit test for child object?

后端 未结 0 820
悲哀的现实
悲哀的现实 2021-02-06 18:24

I\'m trying to write a test for my Recipe class.

from django.contrib.auth.models import User

class Recipe(models.Model):

    user = models.ForeignKey(User, on_d         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题