@@ -11,18 +11,6 @@ def test_serialize(self):
1111 '{"hello": {"foo": "bar"}}' ,
1212 )
1313
14- def test_serialize_force_str (self ):
15- class Foo :
16- spam = "bar"
17-
18- def __str__ (self ):
19- return f"Foo spam={ self .spam } "
20-
21- self .assertEqual (
22- store .serialize ({"hello" : Foo ()}),
23- '{"hello": "Foo spam=bar"}' ,
24- )
25-
2614 def test_deserialize (self ):
2715 self .assertEqual (
2816 store .deserialize ('{"hello": {"foo": "bar"}}' ),
@@ -38,7 +26,7 @@ def test_methods_are_not_implemented(self):
3826 ]
3927 self .assertEqual (len (methods ), 7 )
4028 with self .assertRaises (NotImplementedError ):
41- store .BaseStore .ids ()
29+ store .BaseStore .request_ids ()
4230 with self .assertRaises (NotImplementedError ):
4331 store .BaseStore .exists ("" )
4432 with self .assertRaises (NotImplementedError ):
@@ -64,7 +52,7 @@ def tearDown(self) -> None:
6452 def test_ids (self ):
6553 self .store .set ("foo" )
6654 self .store .set ("bar" )
67- self .assertEqual (list (self .store .ids ()), ["foo" , "bar" ])
55+ self .assertEqual (list (self .store .request_ids ()), ["foo" , "bar" ])
6856
6957 def test_exists (self ):
7058 self .assertFalse (self .store .exists ("missing" ))
@@ -73,14 +61,14 @@ def test_exists(self):
7361
7462 def test_set (self ):
7563 self .store .set ("foo" )
76- self .assertEqual (list (self .store .ids ()), ["foo" ])
64+ self .assertEqual (list (self .store .request_ids ()), ["foo" ])
7765
7866 def test_set_max_size (self ):
7967 existing = self .store ._config ["RESULTS_CACHE_SIZE" ]
8068 self .store ._config ["RESULTS_CACHE_SIZE" ] = 1
8169 self .store .save_panel ("foo" , "foo.panel" , "foo.value" )
8270 self .store .save_panel ("bar" , "bar.panel" , {"a" : 1 })
83- self .assertEqual (list (self .store .ids ()), ["bar" ])
71+ self .assertEqual (list (self .store .request_ids ()), ["bar" ])
8472 self .assertEqual (self .store .panel ("foo" , "foo.panel" ), {})
8573 self .assertEqual (self .store .panel ("bar" , "bar.panel" ), {"a" : 1 })
8674 # Restore the existing config setting since this config is shared.
@@ -89,20 +77,20 @@ def test_set_max_size(self):
8977 def test_clear (self ):
9078 self .store .save_panel ("bar" , "bar.panel" , {"a" : 1 })
9179 self .store .clear ()
92- self .assertEqual (list (self .store .ids ()), [])
80+ self .assertEqual (list (self .store .request_ids ()), [])
9381 self .assertEqual (self .store .panel ("bar" , "bar.panel" ), {})
9482
9583 def test_delete (self ):
9684 self .store .save_panel ("bar" , "bar.panel" , {"a" : 1 })
9785 self .store .delete ("bar" )
98- self .assertEqual (list (self .store .ids ()), [])
86+ self .assertEqual (list (self .store .request_ids ()), [])
9987 self .assertEqual (self .store .panel ("bar" , "bar.panel" ), {})
10088 # Make sure it doesn't error
10189 self .store .delete ("bar" )
10290
10391 def test_save_panel (self ):
10492 self .store .save_panel ("bar" , "bar.panel" , {"a" : 1 })
105- self .assertEqual (list (self .store .ids ()), ["bar" ])
93+ self .assertEqual (list (self .store .request_ids ()), ["bar" ])
10694 self .assertEqual (self .store .panel ("bar" , "bar.panel" ), {"a" : 1 })
10795
10896 def test_panel (self ):
0 commit comments