def set_up(self): FileSystem.INSTANCE = FileSystemStub() viewcore.DATABASE_INSTANCE = None viewcore.DATABASES = [] configuration_provider.set_configuration('PARTNERNAME', 'Maureen') configuration_provider.set_configuration('DATABASES', 'Sebastian') request_handler.stub_me()
def set_up(self): FileSystem.INSTANCE = FileSystemStub() configuration_provider.LOADED_CONFIG = None viewcore.DATABASE_INSTANCE = None viewcore.DATABASES = [] print(viewcore.database_instance().name) configuration_provider.set_configuration('PARTNERNAME', 'Maureen') request_handler.stub_me()
def enter_testmode(request): FileSystem.INSTANCE = FileSystemStub() viewcore.DATABASE_INSTANCE = None viewcore.DATABASES = ['test'] viewcore.CONTEXT = {} configuration_provider.LOADED_CONFIG = None configuration_provider.set_configuration('PARTNERNAME', 'Maureen') print('WARNUNG: ENTERING TESTMODE') return redirect('/', code=301)
def set_up(self): FileSystem.INSTANCE = FileSystemStub() viewcore.DATABASE_INSTANCE = None request_handler.stub_me()
def mock_filesystem(self): FileSystem.INSTANCE = FileSystemStub()
def set_up(self): FileSystem.INSTANCE = FileSystemStub() viewcore.DATABASE_INSTANCE = None viewcore.DATABASES = [] configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
def set_up(self): FileSystem.INSTANCE = FileSystemStub() viewcore.DATABASE_INSTANCE = None configuration_provider.LOADED_CONFIG = None request_handler.stub_me()