Testing legacy database in Django 2.1

时间:2019-02-05 17:16:12

标签: python django django-models django-testing django-tests

I'm writing an app which uses a legacy database (with managed=False) for some of the models, and have been trying to find a way to test them (as the usual testing won't work since it won't allow table creation). I have tried all of the workarounds I could find but the most recent was from 2017 and referred to a much older version of Django. Does anyone know a way to perform tests on legacy databases with unmanaged models in the current version of Django (2.1)?

0 个答案:

没有答案