def setUp(self): self._maxDiff = None repoPath = paths.testDataRepo self._dataUrl = moduleTestServer.getUrl() dataRepository = datarepo.SqlDataRepository(repoPath) dataRepository.open(datarepo.MODE_READ) self._backend = backend.Backend(dataRepository) self._client = client.LocalClient(self._backend)
def getClient(self): return client.LocalClient(self.backend)
def setUp(self): registryLocation = 'registry.db' dataRepository = datarepo.SqlDataRepository(registryLocation) dataRepository.open(datarepo.MODE_READ) self._backend = backend.Backend(dataRepository) self._client = client.LocalClient(self._backend)
def setUp(self): self._repo = datarepo.SqlDataRepository(paths.testDataRepo) self._repo.open(datarepo.MODE_READ) self._backend = backend.Backend(self._repo) self._client = client.LocalClient(self._backend)