tests: use random dbname in hobo tests (and cleanup) (#86729) #1116
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/86729-hobo-sql-random"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -272,0 +272,4 @@
}
z.writestr('config.json', json.dumps(CONFIG))
yield True
shutil.rmtree(skeleton_dir)
Plutôt que réutiliser le long des tests ce qui a été construit, je modifie la fixture pour ensuite nettoyer le répertoire, puis les éventuelles bases de données supplémentaires.
@ -76,6 +77,7 @@ class Command(TenantCommand):
options['json_filename'] = hobo_json_path
self.init_tenant_publisher(tenant.hostname, register_tld_names=False)
self.deploy(**options)
cleanup_connection()
Sinon une connexion à la db reste ouverte et la suppression échoue, façon
WIP: tests: use random dbname in hobo tests (and cleanup) (#86729)to tests: use random dbname in hobo tests (and cleanup) (#86729)