Skip to content

Commit

Permalink
Update run_tests.py
Browse files Browse the repository at this point in the history
Reorder the Mongo DB Schema Design to Module-SubModule-Backend-Backend_Version-Frontend_Version-Test_Function
  • Loading branch information
RashulChutani authored Mar 27, 2023
1 parent f8e8f48 commit 91e0303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ def update_individual_test_results(
backend_version=None,
frontend_version=None,
):
key = submod + "." + backend + "." + test
key = submod + "." + backend
if backend_version is not None:
backend_version = backend_version.replace(".", "_")
key += "." + backend_version
if frontend_version is not None:
frontend_version = frontend_version.replace(".", "_")
key += "." + frontend_version
key += "." + test
collection.update_one(
{"_id": id},
{"$set": {key: result}},
Expand Down

0 comments on commit 91e0303

Please sign in to comment.