(self)
| 72 | self.kernels_utils = kernels_utils |
| 73 | |
| 74 | def tearDown(self): |
| 75 | _unpatch_kernels() |
| 76 | import modelscope |
| 77 | for name in ('get_kernel', 'has_kernel', 'install_kernel', |
| 78 | 'load_kernel', 'get_locked_kernel', 'snapshot_download'): |
| 79 | try: |
| 80 | delattr(modelscope, name) |
| 81 | except AttributeError: |
| 82 | pass |
| 83 | |
| 84 | |
| 85 | class KernelsProxyApiTest(_KernelsTestBase): |
nothing calls this directly
no test coverage detected