@@ -1810,7 +1810,7 @@ def test_initialize_model_from_run_nonstrict(self):
18101810@mock .patch .object (requests .Session , "request" )
18111811def test_delete_run_not_owned (mock_delete , test_files_directory , test_api_key ):
18121812 openml .config .start_using_configuration_for_example ()
1813- content_file = test_files_directory / "mock_responses" / "xml" / "runs" / "run_delete_not_owned.xml"
1813+ content_file = test_files_directory / "mock_responses" / "runs" / "run_delete_not_owned.xml"
18141814 mock_delete .return_value = create_request_response (
18151815 status_code = 412 ,
18161816 content_filepath = content_file ,
@@ -1822,7 +1822,7 @@ def test_delete_run_not_owned(mock_delete, test_files_directory, test_api_key):
18221822 ):
18231823 openml .runs .delete_run (40_000 )
18241824
1825- run_url = "https://test.openml.org/api/v1/xml/ run/40000"
1825+ run_url = "https://test.openml.org/api/v1/run/40000"
18261826 print (mock_delete .call_args .kwargs )
18271827 assert run_url == mock_delete .call_args .kwargs .get ("url" )
18281828 assert "DELETE" == mock_delete .call_args .kwargs .get ("method" )
@@ -1832,7 +1832,7 @@ def test_delete_run_not_owned(mock_delete, test_files_directory, test_api_key):
18321832@mock .patch .object (requests .Session , "request" )
18331833def test_delete_run_success (mock_delete , test_files_directory , test_api_key ):
18341834 openml .config .start_using_configuration_for_example ()
1835- content_file = test_files_directory / "mock_responses" / "xml" / "runs" / "run_delete_successful.xml"
1835+ content_file = test_files_directory / "mock_responses" / "runs" / "run_delete_successful.xml"
18361836 mock_delete .return_value = create_request_response (
18371837 status_code = 200 ,
18381838 content_filepath = content_file ,
@@ -1841,7 +1841,7 @@ def test_delete_run_success(mock_delete, test_files_directory, test_api_key):
18411841 success = openml .runs .delete_run (10591880 )
18421842 assert success
18431843
1844- run_url = "https://test.openml.org/api/v1/xml/ run/10591880"
1844+ run_url = "https://test.openml.org/api/v1/run/10591880"
18451845 print (mock_delete .call_args .kwargs )
18461846 assert run_url == mock_delete .call_args .kwargs .get ("url" )
18471847 assert "DELETE" == mock_delete .call_args .kwargs .get ("method" )
@@ -1851,7 +1851,7 @@ def test_delete_run_success(mock_delete, test_files_directory, test_api_key):
18511851@mock .patch .object (requests .Session , "request" )
18521852def test_delete_unknown_run (mock_delete , test_files_directory , test_api_key ):
18531853 openml .config .start_using_configuration_for_example ()
1854- content_file = test_files_directory / "mock_responses" / "xml" / "runs" / "run_delete_not_exist.xml"
1854+ content_file = test_files_directory / "mock_responses" / "runs" / "run_delete_not_exist.xml"
18551855 mock_delete .return_value = create_request_response (
18561856 status_code = 412 ,
18571857 content_filepath = content_file ,
@@ -1863,7 +1863,7 @@ def test_delete_unknown_run(mock_delete, test_files_directory, test_api_key):
18631863 ):
18641864 openml .runs .delete_run (9_999_999 )
18651865
1866- run_url = "https://test.openml.org/api/v1/xml/ run/9999999"
1866+ run_url = "https://test.openml.org/api/v1/run/9999999"
18671867 print (mock_delete .call_args .kwargs )
18681868 assert run_url == mock_delete .call_args .kwargs .get ("url" )
18691869 assert "DELETE" == mock_delete .call_args .kwargs .get ("method" )
0 commit comments