This is an automated email from the ASF dual-hosted git repository.
dominikriemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new c790abdcd9 fix: migrate deprecated method in Python Client (#4613)
c790abdcd9 is described below
commit c790abdcd99f9f5db0eab57bf9583034f8a6d921
Author: airwish <[email protected]>
AuthorDate: Tue Jun 23 13:40:24 2026 +0800
fix: migrate deprecated method in Python Client (#4613)
---
streampipes-client-python/tests/endpoint/test_data_lake_measure.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/streampipes-client-python/tests/endpoint/test_data_lake_measure.py
b/streampipes-client-python/tests/endpoint/test_data_lake_measure.py
index 4ef6675399..7335648bac 100644
--- a/streampipes-client-python/tests/endpoint/test_data_lake_measure.py
+++ b/streampipes-client-python/tests/endpoint/test_data_lake_measure.py
@@ -15,7 +15,7 @@
# limitations under the License.
#
-from datetime import datetime
+from datetime import datetime, timezone
from unittest import TestCase
from streampipes.endpoint.api.data_lake_measure import (
@@ -55,7 +55,7 @@ class TestMeasurementGetQueryConfig(TestCase):
self.assertEqual("?limit=1000&page=5", result)
def test_datetime_validation(self):
- now = datetime.utcnow()
+ now = datetime.now(timezone.utc)
config_dict = {"start_date": now, "end_date": now}
measurement_config =
DataLakeMeasureEndpoint._validate_query_params(query_params=config_dict)