def setUp(self): # Set do_logging to True if you like walls of text self.TestConfig = Configure.open(TEST_CONFIG) td = '__tempdir__' z = self.TestConfig['rdf.store_conf'] if z.startswith(td): x = z[len(td):] h = tempfile.mkdtemp() self.TestConfig['rdf.store_conf'] = h + x self.delete_dir() PyOpenWorm.connect(conf=self.TestConfig, do_logging=False)
def open(cls,file_name): """ Open a file storing configuration in a JSON format """ Configureable.conf = Configure.open(file_name) return cls()
def open(cls, file_name): """ Open a file storing configuration in a JSON format """ Configureable.conf = Configure.open(file_name) return cls()