def setUp(): global ARGS, BASE if ARGS.ktbs is None: my_ktbs = make_ktbs() ARGS.ktbs = my_ktbs.uri elif ARGS.ktbs.startswith("file://"): my_ktbs = make_ktbs(repository=ARGS.ktbs[7:]) ARGS.ktbs = my_ktbs.uri else: my_ktbs = get_ktbs(ARGS.ktbs) BASE = my_ktbs.create_base(label="stress-ktbs-base") model = BASE.create_model("m") model.unit = KTBS.millisecond BASE.create_stored_trace("t/", "m", "2012-09-06T00:00:00Z", default_subject="Alice")
def setUp(): global ARGS, BASE if ARGS.ktbs is None: my_ktbs = make_ktbs() ARGS.ktbs = my_ktbs.uri elif ARGS.ktbs.startswith("file://"): ktbs_config = get_ktbs_configuration() ktbs_config.set('rdf_database', 'repository', ARGS.ktbs[7:]) my_ktbs = make_ktbs(ktbs_config) ARGS.ktbs = my_ktbs.uri else: my_ktbs = get_ktbs(ARGS.ktbs) BASE = my_ktbs.create_base(label="stress-ktbs-base") model = BASE.create_model("m") model.unit = KTBS.millisecond BASE.create_stored_trace("t/", "m", "2012-09-06T00:00:00Z", default_subject="Alice")
def setup(self): # Run the kTBS on another from the other tests to prevent reusing existing semaphores self.my_ktbs = make_ktbs("http://localhost:54321/") self.service = self.my_ktbs.service
def setUp(self): # Run the kTBS on another from the other tests to prevent reusing existing semaphores self.my_ktbs = make_ktbs("http://localhost:54321/") self.service = self.my_ktbs.service
def setup(self): self.my_ktbs = make_ktbs()
def setUp(self): self.my_ktbs = make_ktbs()
def setUp(self): self.my_ktbs = make_ktbs("http://localhost:12345/") self.service = self.my_ktbs.service