MCPcopy Index your code
hub / github.com/Kaggle/docker-python / test_monkeypatching_idempotent

Method test_monkeypatching_idempotent

tests/test_vision.py:57–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 self.assertTrue("kaggle_gcp" in inspect.getsourcefile(client))
56
57 def test_monkeypatching_idempotent(self):
58 env = EnvironmentVarGuard()
59 env.set('KAGGLE_USER_SECRETS_TOKEN', 'foobar')
60 env.set('KAGGLE_KERNEL_INTEGRATIONS', 'CLOUDAI')
61 with env:
62 init_vision()
63 client1 = vision.ImageAnnotatorClient.__init__
64 init_vision()
65 client2 = vision.ImageAnnotatorClient.__init__
66 self.assertEqual(client1, client2)

Callers

nothing calls this directly

Calls 1

init_visionFunction · 0.90

Tested by

no test coverage detected