@@ -133,6 +133,7 @@ def test_get_availability(live_c8y: CumulocityApi, sample_device: Device):
133133 print ("Availability not yet available (pun intended). Retrying ..." )
134134 assert availability
135135
136+
136137@pytest .fixture
137138def object_with_measurements (live_c8y : CumulocityApi , mutable_object : ManagedObject ) -> ManagedObject :
138139 """Provide a managed object with predefined measurements."""
@@ -143,21 +144,25 @@ def object_with_measurements(live_c8y: CumulocityApi, mutable_object: ManagedObj
143144 live_c8y .measurements .create (* ms )
144145 return mutable_object
145146
147+
146148def test_get_supported_measurements (live_c8y : CumulocityApi , object_with_measurements : ManagedObject ):
147149 """Verify that the supported measurements can be retrieved."""
148150 result = live_c8y .inventory .get_supported_measurements (object_with_measurements .id )
149151 assert set (result ) == {'c8y_Counter' , 'c8y_Integers' }
150152
153+
151154def test_get_supported_measurements_2 (live_c8y : CumulocityApi , object_with_measurements : ManagedObject ):
152155 """Verify that the supported measurements can be retrieved."""
153156 result = object_with_measurements .get_supported_measurements ()
154157 assert set (result ) == {'c8y_Counter' , 'c8y_Integers' }
155158
159+
156160def test_get_supported_series (live_c8y : CumulocityApi , object_with_measurements : ManagedObject ):
157161 """Verify that the supported measurement series can be retrieved."""
158162 result = live_c8y .inventory .get_supported_series (object_with_measurements .id )
159163 assert set (result ) == {'c8y_Counter.N' , 'c8y_Integers.V1' , 'c8y_Integers.V2' }
160164
165+
161166def test_get_supported_series_2 (live_c8y : CumulocityApi , object_with_measurements : ManagedObject ):
162167 """Verify that the supported measurement series can be retrieved."""
163168 result = object_with_measurements .get_supported_series ()
0 commit comments