I have multi tenant Django application with a Postgres DB, that follows a shared db and isolated schema approach as detailed here: https://books.agiliq.com/projects/django-multi-tenant/en/latest/shared-database-isolated-schema.html
I'm trying to create a test to see if data is properly segregated with users that have the same username but are in different schemas. For example:
Schema Tenant A has user John
Schema Tenant B has user John
I need some guidance on how to setup a test that checks the schema and users associated with that schema.
Aucun commentaire:
Enregistrer un commentaire