Ejemplo n.º 1
0
 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()
Ejemplo n.º 5
0
 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')
Ejemplo n.º 7
0
 def set_up(self):
     FileSystem.INSTANCE = FileSystemStub()
     viewcore.DATABASE_INSTANCE = None
     configuration_provider.LOADED_CONFIG = None
     request_handler.stub_me()