We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85f8a5f commit e16a2b2Copy full SHA for e16a2b2
tests/test_ml_funcs.py
@@ -121,13 +121,12 @@ def test_run_segmentation():
121
122
123
def test_download_model(tmpdir):
124
- print(tmpdir)
+ tmpdir = Path(tmpdir)
125
export_dir = Path(tmpdir / 'export')
126
export_dir.mkdir(parents=True, exist_ok=True)
127
128
ml_model = sa.search_models(include_global=True)[0]
129
- Path.rmdir(Path(tmpdir) / './export')
130
- model = sa.download_model(ml_model, './export')
+ model = sa.download_model(ml_model, tmpdir / 'export')
131
assert model['name']
132
- model = sa.download_model(ml_model['name'], './export')
+ model = sa.download_model(ml_model['name'], tmpdir / 'export')
133
0 commit comments