Skip to content
Advertisement

Tag: django-unittest

Django Unit Test – IDs of created objects

Sample models.py models.py Suppose that I have written unit test/s: I was wondering if it’s safe to assume that the id’s of the created objects in setUp() method will always start at id 1 and so on and so forth? If not, is there a specific reason why if the test database is always destroyed after running all tests? Answer

Advertisement