Skip to content

Commit

Permalink
Fix live tests (Azure#20886)
Browse files Browse the repository at this point in the history
* Fix tests

* Update sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py
  • Loading branch information
Rakshith Bhyravabhotla authored Sep 27, 2021
1 parent 5697a75 commit 99ab168
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _from_generated(cls, generated):
)


class LogsTableRow(list):
class LogsTableRow(object):
"""Represents a single row in logs table.
This type is gettable by both column name and column index.
Expand All @@ -66,7 +66,6 @@ class LogsTableRow(list):

def __init__(self, **kwargs):
# type: (Any) -> None
super(LogsTableRow, self).__init__(**kwargs)
_col_types = kwargs["col_types"]
row = kwargs["row"]
self._row = process_row(_col_types, row)
Expand Down Expand Up @@ -145,8 +144,7 @@ def _from_generated(cls, generated):
class MetricsList(list):
"""Custom list for metrics
"""
def __init__(self, **kwargs):
super(MetricsList, self).__init__(**kwargs)
def __init__(self, **kwargs): # pylint: disable=super-init-not-called
self._metrics = kwargs['metrics']
self._metric_names = {val.name: ind for ind, val in enumerate(self._metrics)}

Expand Down

0 comments on commit 99ab168

Please sign in to comment.