@@ -46,6 +46,7 @@ class TestAligner(unittest.TestCase):
4646 @staticmethod
4747 def _get_target_class ():
4848 from google .cloud .monitoring .query import Aligner
49+
4950 return Aligner
5051
5152 def test_one (self ):
@@ -62,6 +63,7 @@ class TestReducer(unittest.TestCase):
6263 @staticmethod
6364 def _get_target_class ():
6465 from google .cloud .monitoring .query import Reducer
66+
6567 return Reducer
6668
6769 def test_one (self ):
@@ -79,6 +81,7 @@ class TestQuery(unittest.TestCase):
7981 @staticmethod
8082 def _get_target_class ():
8183 from google .cloud .monitoring .query import Query
84+
8285 return Query
8386
8487 def _make_one (self , * args , ** kwargs ):
@@ -87,6 +90,7 @@ def _make_one(self, *args, **kwargs):
8790 @staticmethod
8891 def _make_timestamp (value ):
8992 from google .cloud ._helpers import _datetime_to_rfc3339
93+
9094 return _datetime_to_rfc3339 (value )
9195
9296 def test_constructor_minimal (self ):
@@ -149,6 +153,7 @@ def test_constructor_default_end_time(self):
149153
150154 def test_constructor_nonzero_duration_illegal (self ):
151155 import datetime
156+
152157 T1 = datetime .datetime (2016 , 4 , 7 , 2 , 30 , 30 )
153158 client = _Client (project = PROJECT , connection = _Connection ())
154159 with self .assertRaises (ValueError ):
@@ -506,6 +511,7 @@ class Test_Filter(unittest.TestCase):
506511 @staticmethod
507512 def _get_target_class ():
508513 from google .cloud .monitoring .query import _Filter
514+
509515 return _Filter
510516
511517 def _make_one (self , metric_type ):
@@ -540,6 +546,7 @@ class Test__build_label_filter(unittest.TestCase):
540546
541547 def _call_fut (self , * args , ** kwargs ):
542548 from google .cloud .monitoring .query import _build_label_filter
549+
543550 return _build_label_filter (* args , ** kwargs )
544551
545552 def test_no_labels (self ):
@@ -636,6 +643,7 @@ def __init__(self, *responses):
636643
637644 def api_request (self , ** kwargs ):
638645 from google .cloud .exceptions import NotFound
646+
639647 self ._requested .append (kwargs )
640648 try :
641649 return self ._responses .pop (0 )
0 commit comments