Skip to content

Commit

Permalink
test: updated to delete _id
Browse files Browse the repository at this point in the history
  • Loading branch information
amunchet committed Oct 24, 2023
1 parent acfb796 commit 4712d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/test/test_03_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,8 @@ def test_list_dashboard(setup):
"icon": "linux",
"services": [
{"found_service": "open_ports", "name" : "open_ports", "state": False, "latest_metric" : None},
{"name": "closed_ports", "state": False, "name" : "closed_ports", "latest_metric" : None},
{"name": "closed_ports", "state": False, "found_service" : "closed_ports", "latest_metric" : None},
{"name": "check_hd-1", "state": False, "latest_metric" : None, "found_service" : {
"_id" : "None",
"comparison" : "greater",
"display_name" : "check_hd-1",
"field" : "read_time",
Expand Down Expand Up @@ -735,5 +734,6 @@ def test_list_dashboard(setup):
del b[0]["_id"]
del b[1]["_id"]
del b[1]["groups"][0]["hosts"][0]["_id"]
del b[1]["groups"][0]["hosts"][0]["services"][-1]["_id"]

assert b == expected

0 comments on commit 4712d0e

Please sign in to comment.