autowisp.tests.test_project_creation_guard module
Class Inheritance Diagram

Unit tests for the guard against creating a project over another one.
Project creation drops and recreates every AutoWISP table, so pointing a
new project at a database that already holds them destroys whichever
project lives there. These exercise set_project_home(new_project=True)
against throwaway SQLite databases – the check is backend-independent
(it compares table names), so SQLite covers the centralised case too.
- class autowisp.tests.test_project_creation_guard.TestNewProjectGuard(methodName='runTest')[source]
Bases:
TestCase
new_project=Truerefuses a non-empty AutoWISP database.- test_creation_in_empty_home_succeeds()[source]
A fresh directory is a valid home for a new project.
- test_opening_existing_project_still_allowed()[source]
Without new_project the same call just reconnects.