Skip to content

Commit

Permalink
Fixed integration test failure due to renaming the type to row_type s…
Browse files Browse the repository at this point in the history
…o that it is not overwriting a system variable in python (per the linting warning).
  • Loading branch information
SeriousHorncat committed Dec 6, 2023
1 parent c1ace7a commit ce607bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/tests/integration/test_analysis_routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_update_analysis_sections(client, mock_access_token, mock_repositories,

mock_repositories["analysis"].collection.find_one.return_value = update_analysis_section_response_json
response = client.post(
"/analysis/CPAM0047/sections?type=text",
"/analysis/CPAM0047/sections?row_type=text",
headers={"Authorization": "Bearer " + mock_access_token, "Content-Type": "application/json"},
json=updated_sections,
)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/models/analyses.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
}
sectionsToUpdate.push(analysisSection);
}
const url = `/rosalution/api/analysis/${analysisName}/sections?type=text`;
const url = `/rosalution/api/analysis/${analysisName}/sections?row_type=text`;
return await Requests.post(url, sectionsToUpdate);
},

Expand Down

0 comments on commit ce607bb

Please sign in to comment.