def test_acquire_live(self):
     fc = factory_client.FactoryClientManifests(CONFIG)
     pprint.pprint(fc.acquire())
 def test_acquire_bad(self):
     fc = factory_client.FactoryClientManifests(CONFIG_BAD)
     fc_df = fc.acquire()
     assert(len(fc_df['factoryclient_manifests']) == 0)
 def test_acquire(self):
     fc = factory_client.FactoryClientManifests(CONFIG)
     with mock.patch.object(htcondor_query.CondorStatus, 'fetch') as f:
         f.return_value = utils.input_from_file(FIXTURE_FILE)
         pprint.pprint(fc.acquire())
 def test_produces(self):
     fc = factory_client.FactoryClientManifests(CONFIG)
     produces = ['factoryclient_manifests']
     assert(fc.produces() == produces)
 def test_acquire(self):
     fc = factory_client.FactoryClientManifests(config)
     with mock.patch.object(htcondor_query.CondorStatus, 'fetch') as f:
         f.return_value = utils.input_from_file('factory_client.cs.fixture')
         pprint.pprint(fc.acquire())
 def test_produces(self):
     fc = factory_client.FactoryClientManifests(CONFIG)
     assert fc._produces == {"factoryclient_manifests": pandas.DataFrame}
def test_acquire_bad():
    fc = factory_client.FactoryClientManifests(CONFIG_BAD)
    fc_df = fc.acquire()
    assert len(fc_df["factoryclient_manifests"]) == 0