From c2cb0f118424c4b0e34035033f79cf293d4060f0 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Aug 08 2017 15:39:40 +0000 Subject: fix test_krbv_disabled unit test --- diff --git a/tests/test_lib_py2only/test_krbv.py b/tests/test_lib_py2only/test_krbv.py index f96b525..13e827e 100644 --- a/tests/test_lib_py2only/test_krbv.py +++ b/tests/test_lib_py2only/test_krbv.py @@ -10,8 +10,9 @@ import koji class KrbVTestCase(unittest.TestCase): @mock.patch('koji.krbV', new=None) + @mock.patch('koji.HTTPKerberosAuth', new=None) def test_krbv_disabled(self): - """ Test that when krbV is absent, we behave rationally. """ + """Test that when krbV and gssapi are absent, we behave rationally""" self.assertEquals(koji.krbV, None) session = koji.ClientSession('whatever') with self.assertRaises(ImportError):