Skip to content

Commit

Permalink
Fixed broken API source code test.
Browse files Browse the repository at this point in the history
  • Loading branch information
gcallah committed Aug 11, 2021
1 parent 18c1e51 commit 9953a77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion APIServer/source_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def path_from_model(model):
return model.get('package') + '/' + model.get('module') + '.py'
return '/' + model.get('package') + '/' + model.get('module') + '.py'


def get_source_code(model_id):
Expand Down
1 change: 1 addition & 0 deletions APIServer/tests/test_api_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def test_get_source_code(self):
"""
sources = SourceCode(Resource)
models = Models(Resource)
api_ret = None
with app.test_request_context():
api_ret = models.get()
for model in api_ret:
Expand Down

0 comments on commit 9953a77

Please sign in to comment.