Skip to content

Commit

Permalink
removed commented method
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Reddy Boyapally <sboyapal@redhat.com>
  • Loading branch information
shashank-boyapally committed Feb 9, 2024
1 parent fbc7295 commit 81676c4
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions fmatch/tests/test_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,38 +143,6 @@ def test_filter_runs(matcher_instance):
assert result == expected


# def test_parse_agg_results(matcher_instance):
# # Mocked data for the Elasticsearch DSL query response
# response_data = {
# "aggregations": {
# "time": {
# "buckets": [
# {"key": "uuid1", "time": {"value_as_string": "2022-01-01T00:00:00"}},
# {"key": "uuid2", "time": {"value_as_string": "2022-01-01T01:00:00"}},
# ]
# },
# "uuid": {
# "buckets": [
# {"key": "uuid1", "your_agg_field": {"value": 10}},
# {"key": "uuid2", "your_agg_field": {"value": 20}},
# ]
# },
# }
# }

# # Call the parse_agg_results method
# parsed_results = matcher_instance.parse_agg_results(response_data, "your_agg_field", "avg")

# # Define the expected result
# expected = [
# {"uuid": "uuid1", "timestamp": "2022-01-01T00:00:00", "your_agg_field_avg": 10},
# {"uuid": "uuid2", "timestamp": "2022-01-01T01:00:00", "your_agg_field_avg": 20},
# ]

# # Assert the result matches the expected value
# assert parsed_results == expected


def test_getResults(matcher_instance):
test_uuid = "uuid1"
test_uuids = ["uuid1", "uuid2"]
Expand Down

0 comments on commit 81676c4

Please sign in to comment.