(self)
| 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) |
nothing calls this directly
no test coverage detected