當我運行我的應用程序測試django時,請勿創建我的應用程序表並引發錯誤。運行測試時未創建應用程序表
我的測試文件:
from django.test import TestCase
class MyTest(TestCase):
fixtures = ['initial_data.json']
def test_my_stuff(self):
[...]
當我運行測試:
DatabaseError: Problem installing fixture '/home/.../djStock/stock/fixtures/initial_data.json': Could not load stock.Provider(pk=1): (1146, "Table 'test_djstock.stock_provider' doesn't exist")
我的應用程序中INSTALLED_APPS正確添加。我想念什麼?