QTZPOC-20
QTZPOC-20: Consolidate written_code_dir assignment into a single line in sklearn flavor retrain E2E test.
This commit is contained in:
@@ -87,9 +87,7 @@ async def test_retrain_sklearn_model_preserves_code_dir_and_reloads(tmp_path):
|
||||
await repository.log_model(model_data, 'sklearn', 'prediction_model', {'metadata': {}})
|
||||
run_id = run.info.run_id
|
||||
|
||||
written_code_dir = Path(
|
||||
repository.client.download_artifacts(run_id, 'prediction_model/code')
|
||||
)
|
||||
written_code_dir = Path(repository.client.download_artifacts(run_id, 'prediction_model/code'))
|
||||
assert (written_code_dir / f'{CODE_MODULE_NAME}.py').is_file()
|
||||
|
||||
# The class must resolve from the artifact's written code/, not from anything left in memory.
|
||||
|
||||
Reference in New Issue
Block a user