@@ -155,7 +155,7 @@ async def test_models(self):
155155
156156class TestRoutesConfigure (TestRoutesRunning , AsyncTestCase ):
157157 async def test_source (self ):
158- config = parse_unknown (
158+ config = await parse_unknown (
159159 "--source-filename" , "dataset.csv" , "-source-allowempty"
160160 )
161161 async with self .post ("/configure/source/csv/salary" , json = config ) as r :
@@ -177,7 +177,7 @@ async def test_source(self):
177177 self .assertIn ("salaryctx" , self .cli .app ["source_contexts" ])
178178
179179 async def test_source_error (self ):
180- config = parse_unknown ("--source-file" , "dataset.csv" )
180+ config = await parse_unknown ("--source-file" , "dataset.csv" )
181181 with self .assertRaisesRegex (ServerException , "missing.*filename" ):
182182 async with self .post ("/configure/source/csv/salary" , json = config ):
183183 pass # pramga: no cov
@@ -193,7 +193,7 @@ async def test_model(self):
193193 with tempfile .TemporaryDirectory () as tempdir , patch .object (
194194 Model , "load" , new = model_load
195195 ):
196- config = parse_unknown (
196+ config = await parse_unknown (
197197 "--model-directory" ,
198198 tempdir ,
199199 "--model-features" ,
@@ -230,7 +230,7 @@ async def test_model(self):
230230
231231 async def test_model_config_error (self ):
232232 # Should be directory, not folder
233- config = parse_unknown ("--model-directory" , "mymodel_dir" )
233+ config = await parse_unknown ("--model-directory" , "mymodel_dir" )
234234 with patch .object (Model , "load" , new = model_load ):
235235 with self .assertRaisesRegex (ServerException , "missing.*features" ):
236236 async with self .post (
0 commit comments