From 6a4a2bb78a45ad5d71d73923f10abbff6b43e6b1 Mon Sep 17 00:00:00 2001 From: Gracjan Sadowicz Date: Fri, 15 Dec 2023 02:17:32 +0100 Subject: [PATCH] RDBC-767 TimeSeriesSessionTest::getAllTimeSeriesNamesWhenNoTimeSeries --- .../time_series_tests/test_time_series_session.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ravendb/tests/jvm_migrated_tests/client_tests/time_series_tests/test_time_series_session.py b/ravendb/tests/jvm_migrated_tests/client_tests/time_series_tests/test_time_series_session.py index 50d1aaa9..31f29877 100644 --- a/ravendb/tests/jvm_migrated_tests/client_tests/time_series_tests/test_time_series_session.py +++ b/ravendb/tests/jvm_migrated_tests/client_tests/time_series_tests/test_time_series_session.py @@ -631,3 +631,13 @@ def test_can_delete_timestamp(self): self.assertEqual([79], vals[1].values) self.assertEqual("watches/fitbit", vals[1].tag) self.assertEqual(base_line + timedelta(minutes=3), vals[1].timestamp) + + def test_get_all_time_series_names_when_no_time_series(self): + with self.store.open_session() as session: + session.store(User(), "users/karmel") + session.save_changes() + + with self.store.open_session() as session: + user = session.load("users/karmel", User) + ts_names = session.advanced.get_time_series_for(user) + self.assertEqual(0, len(ts_names))