File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
stream_framework/tests/storage Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 55
66def implementation (meth ):
77 def wrapped_test (self , * args , ** kwargs ):
8- if self .lists_storage_class in ( BaseListsStorage ,) :
8+ if self .lists_storage_class == BaseListsStorage :
99 raise unittest .SkipTest ('only test this on actual implementations' )
1010 return meth (self , * args , ** kwargs )
1111 return wrapped_test
@@ -21,6 +21,10 @@ def setUp(self):
2121 self .lists_storage = self .lists_storage_class (key = self .key ,
2222 max_length = self .max_length )
2323
24+ def tearDown (self ):
25+ if self .lists_storage_class != BaseListsStorage :
26+ self .lists_storage .flush ('whenever' , 'everyday' , 'whatever' )
27+
2428 @implementation
2529 def test_add_empty_values (self ):
2630 self .lists_storage .add (whenever = [])
Original file line number Diff line number Diff line change @@ -10,6 +10,3 @@ class TestStorage(RedisListsStorage):
1010class TestRedisListsStorage (TestBaseListsStorage ):
1111
1212 lists_storage_class = TestStorage
13-
14- def tearDown (self ):
15- self .lists_storage .redis .flushall ()
You can’t perform that action at this time.
0 commit comments