Skip to content

Commit

Permalink
Test negative case
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpeters1208 committed Aug 19, 2024
1 parent 2ea15cd commit c4464d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py/server/tests/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,14 @@ def test_attributes(self):
self.assertIn("BlinkTable", set(attrs.keys()) - set(rt_attrs.keys()))

def test_remove_blink(self):
t_blink = time_table("PT1s", blink_table=True).update("X = ii")
t_blink = time_table("PT1s", blink_table=True)
t_no_blink = t_blink.remove_blink()
self.assertEqual(t_blink.is_blink, True)
self.assertEqual(t_no_blink.is_blink, False)

with self.assertRaises(RuntimeError):
t_no_blink.remove_blink()

def test_grouped_column_as_arg(self):
t1 = empty_table(100).update(
["id = i % 10", "Person = random() > 0.5 ? true : random() > 0.5 ? false : true"]).sort(
Expand Down

0 comments on commit c4464d5

Please sign in to comment.