fix: change tx_storage tests order as a temporary fix
@@ -237,30 +237,30 @@ class CacheMemoryStorageTest(_BaseTransactionStorageTest._TransactionStorageTest
super().setUp(TransactionCacheStorage(store, reactor, capacity=5))
-class RemoteMemoryStorageTest(_BaseTransactionStorageTest._RemoteStorageTest):
+class SubprocessMemoryStorageTest(_BaseTransactionStorageTest._SubprocessStorageTest):
def setUp(self):
- super().setUp(TransactionMemoryStorage())
+ super().setUp(TransactionMemoryStorage)
-class RemoteCacheMemoryStorageTest(_BaseTransactionStorageTest._RemoteStorageTest):
+class SubprocessCacheMemoryStorageTest(_BaseTransactionStorageTest._SubprocessStorageTest):
def setUp(self):
+ def storage_constructor():
store = TransactionMemoryStorage()
reactor = Clock()
- super().setUp(TransactionCacheStorage(store, reactor, capacity=5))
+ return TransactionCacheStorage(store, reactor, capacity=5)
+ super().setUp(storage_constructor)
-class SubprocessMemoryStorageTest(_BaseTransactionStorageTest._SubprocessStorageTest):
+class RemoteMemoryStorageTest(_BaseTransactionStorageTest._RemoteStorageTest):
def setUp(self):
- super().setUp(TransactionMemoryStorage)
+ super().setUp(TransactionMemoryStorage())
-class SubprocessCacheMemoryStorageTest(_BaseTransactionStorageTest._SubprocessStorageTest):
+class RemoteCacheMemoryStorageTest(_BaseTransactionStorageTest._RemoteStorageTest):
def setUp(self):
- def storage_constructor():
store = TransactionMemoryStorage()
reactor = Clock()
- return TransactionCacheStorage(store, reactor, capacity=5)
- super().setUp(storage_constructor)
+ super().setUp(TransactionCacheStorage(store, reactor, capacity=5))
if __name__ == '__main__':
