Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
Signed-off-by: Avik Basu <[email protected]>
  • Loading branch information
ab93 committed Nov 17, 2023
1 parent c783ba8 commit 7be6ddc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/connectors/test_prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,13 @@ def test_no_metric_name_err(self):
aggregate=True,
)

def test_query_comparision(self):
q1 = "{namespace='odl-odlgraphql-usw2-e2e',numalogic='true'}"
q2 = self.fetcher.build_query(
"", {"namespace": "odl-odlgraphql-usw2-e2e", "numalogic": "true"}
)
self.assertEqual(q1, q2)


if __name__ == "__main__":
unittest.main()

0 comments on commit 7be6ddc

Please sign in to comment.