File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 99from torch .nn import Module
1010
1111
12- @pytest .mark .parametrize ("name" , ["/too/many/slashes" , "org/model" ]) # todo: add back "model-name" after next SDk release
12+ @pytest .mark .parametrize (
13+ "name" , ["/too/many/slashes" , "org/model" ]
14+ ) # todo: add back "model-name" after next SDk release
1315def test_upload_wrong_model_name (name ):
1416 with pytest .raises (ValueError , match = r".*organization/teamspace/model.*" ):
1517 upload_model_files (path = "path/to/checkpoint" , name = name )
1618
1719
18- @pytest .mark .parametrize ("name" , ["/too/many/slashes" , "org/model" ]) # todo: add back "model-name" after next SDk release
20+ @pytest .mark .parametrize (
21+ "name" , ["/too/many/slashes" , "org/model" ]
22+ ) # todo: add back "model-name" after next SDk release
1923def test_download_wrong_model_name (name ):
2024 with pytest .raises (ValueError , match = r".*organization/teamspace/model.*" ):
2125 download_model (name = name )
You can’t perform that action at this time.
0 commit comments