Skip to content

Commit a185a3e

Browse files
update tests
1 parent 9000c34 commit a185a3e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ads/aqua/extension/model_handler.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ class AquaModelLicenseHandler(AquaAPIhandler):
100100
@handle_exceptions
101101
def get(self, model_id):
102102
"""Handle GET request."""
103-
104-
model_id = model_id.split("/")[0]
105103
return self.finish(AquaModelApp().load_license(model_id))
106104

107105

tests/unitary/with_extras/aqua/test_model_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_list(self, mock_list):
7575
)
7676

7777
@patch("notebook.base.handlers.APIHandler.finish")
78-
@patch("ads.aqua.model.model.AquaModelApp.register")
78+
@patch("ads.aqua.model.AquaModelApp.register")
7979
def test_register(self, mock_register, mock_finish):
8080
mock_register.return_value = AquaModel(
8181
id="test_id",

0 commit comments

Comments
 (0)