def test_publish(self): p = glideclientglobal.GlideClientGlobalManifests(config) with mock.patch.object(glideclientglobal.GlideClientGlobalManifests, 'publish_to_htcondor') as publish_to_htcondor: publish_to_htcondor.return_value = None # TODO: Complete this test when we have detailed contents of the # dataframe and the logic engine facts assert (True == True)
def test_create_invalidate_constraint(self): p = glideclientglobal.GlideClientGlobalManifests(config) p.create_invalidate_constraint(request_df) assert (p.invalidate_ads_constraint == expected_constraint)
def test_publish(self): glideclientglobal.GlideClientGlobalManifests(config) with mock.patch.object(glideclientglobal.GlideClientGlobalManifests, 'publish_to_htcondor') as publish_to_htcondor: publish_to_htcondor.return_value = None
def test_consumes(self): consumes = ['glideclientglobal_manifests'] p = glideclientglobal.GlideClientGlobalManifests(config) assert (p.consumes() == consumes)
def test_consumes(self): p = glideclientglobal.GlideClientGlobalManifests(config) assert p._consumes == {'glideclientglobal_manifests': pandas.DataFrame}