(self, request)
| 63 | |
| 64 | @pytest.fixture(scope="session", params=list(test_model_configs.keys())) |
| 65 | def model_info(self, request): |
| 66 | model_name = request.param |
| 67 | try: |
| 68 | torch_model_path = get_torch_model_path(model_name) |
| 69 | if not os.path.exists(torch_model_path): |
| 70 | raise AssertionError(f"Model path does not exist: {torch_model_path}") |
| 71 | return {"name": model_name, "path": torch_model_path, "config": test_model_configs[model_name]} |
| 72 | except Exception as e: |
| 73 | raise AssertionError(f"Could not get torch model path for {model_name}: {e}") |
| 74 | |
| 75 | @pytest.fixture |
| 76 | def model_config(self, model_info): |
nothing calls this directly
no test coverage detected