Skip to content

Commit

Permalink
RDBC-767 TimeSeriesSessionTest::getAllTimeSeriesNamesWhenNoTimeSeries
Browse files Browse the repository at this point in the history
  • Loading branch information
poissoncorp committed Dec 15, 2023
1 parent 77cd5a8 commit 6a4a2bb
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 6a4a2bb

Please sign in to comment.