ProgrammingError: (1146, “Table 'test_.' doesn't exist”) when running unit test for Django
前端 未结 3 1200
后悔当初
后悔当初 2021-02-20 13:34

I\'m running a unit test using the Django framework and get this error.

Running the actual code does not have this problem, running the unit tests creates a test databas

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-20 14:00

    You may get more information on what is going on by adding -v3 to your test, ie:

    $ python manage.py test -v3 sitecoming
    

提交回复
热议问题