Hi Guys,

Not sure this question is on purpose as not purely Django related … 

I am building a frontend using two databases : one for Django and a legacy 
database my frontend needs to access to (read-only). As such, I do have managed 
models with a Django managed db and unmanaged models in an unmanaged legacy db.

I am now trying to build up unitary testing using pytest for Django. How would 
you configure Pytest such that a test db is created for my Django db but the 
legacy database is just accessed without any sort of database creation and 
model creation ?

I found this documentation : 
https://pytest-django.readthedocs.io/en/latest/database.html#using-an-existing-external-database-for-tests

But it doesn’t really help … 

Thanks for your help,
Matt.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/532E2F52-F6DC-4862-96E3-876CAEA09FDA%40gmail.com.

Reply via email to