def test_condorq(self):
     jq = job_q.JobQ(CONFIG_CQ)
     with mock.patch.object(htcondor_query.CondorQ, "fetch") as f:
         f.return_value = utils.input_from_file(FIXTURE_FILE)
         pprint.pprint(jq.acquire())
 def test_condorq_live(self):
     jq = job_q.JobQ(CONFIG_CQ)
     pprint.pprint(jq.acquire())
 def test_produces(self):
     produces = ["job_manifests"]
     jq = job_q.JobQ(CONFIG_CQ)
     assert (jq.produces() == produces)
Example #4
0
 def test_produces(self):
     jq = job_q.JobQ(CONFIG_CQ)
     assert jq._produces == {"job_manifests": pandas.DataFrame}
 def test_condorq_live(self):
     jq = job_q.JobQ(config_cq)
     pprint.pprint(jq.acquire())
 def test_condorq(self):
     jq = job_q.JobQ(config_cq)
     with mock.patch.object(htcondor_query.CondorQ, 'fetch') as f:
         f.return_value = utils.input_from_file('cq.fixture')
         pprint.pprint(jq.acquire())
 def test_produces(self):
     produces = ['job_manifests']
     jq = job_q.JobQ(config_cq)
     assert (jq.produces() == produces)