def test_redirect(self): request_handler.stub_me() result = request_handler.handle_request( PostRequest({'redirect': 'test_page'}), lambda x: {}, 'nothing') assert result == '/test_page/'
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 set_up(self): FileSystem.INSTANCE = FileSystemStub() viewcore.DATABASE_INSTANCE = None request_handler.stub_me()
def set_up(self): FileSystem.INSTANCE = FileSystemStub() viewcore.DATABASE_INSTANCE = None configuration_provider.LOADED_CONFIG = None request_handler.stub_me()