mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-05 00:28:59 -04:00
Run black.
This commit is contained in:
parent
b37c472419
commit
8b3d9b6b19
75 changed files with 1626 additions and 2277 deletions
|
@ -20,7 +20,6 @@ from tests import unittest
|
|||
|
||||
|
||||
class DictCacheTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.cache = DictionaryCache("foobar")
|
||||
|
||||
|
@ -41,9 +40,7 @@ class DictCacheTestCase(unittest.TestCase):
|
|||
key = "test_simple_cache_hit_partial"
|
||||
|
||||
seq = self.cache.sequence
|
||||
test_value = {
|
||||
"test": "test_simple_cache_hit_partial"
|
||||
}
|
||||
test_value = {"test": "test_simple_cache_hit_partial"}
|
||||
self.cache.update(seq, key, test_value)
|
||||
|
||||
c = self.cache.get(key, ["test"])
|
||||
|
@ -53,9 +50,7 @@ class DictCacheTestCase(unittest.TestCase):
|
|||
key = "test_simple_cache_miss_partial"
|
||||
|
||||
seq = self.cache.sequence
|
||||
test_value = {
|
||||
"test": "test_simple_cache_miss_partial"
|
||||
}
|
||||
test_value = {"test": "test_simple_cache_miss_partial"}
|
||||
self.cache.update(seq, key, test_value)
|
||||
|
||||
c = self.cache.get(key, ["test2"])
|
||||
|
@ -79,15 +74,11 @@ class DictCacheTestCase(unittest.TestCase):
|
|||
key = "test_simple_cache_hit_miss_partial"
|
||||
|
||||
seq = self.cache.sequence
|
||||
test_value_1 = {
|
||||
"test": "test_simple_cache_hit_miss_partial",
|
||||
}
|
||||
test_value_1 = {"test": "test_simple_cache_hit_miss_partial"}
|
||||
self.cache.update(seq, key, test_value_1, fetched_keys=set("test"))
|
||||
|
||||
seq = self.cache.sequence
|
||||
test_value_2 = {
|
||||
"test2": "test_simple_cache_hit_miss_partial2",
|
||||
}
|
||||
test_value_2 = {"test2": "test_simple_cache_hit_miss_partial2"}
|
||||
self.cache.update(seq, key, test_value_2, fetched_keys=set("test2"))
|
||||
|
||||
c = self.cache.get(key)
|
||||
|
@ -96,5 +87,5 @@ class DictCacheTestCase(unittest.TestCase):
|
|||
"test": "test_simple_cache_hit_miss_partial",
|
||||
"test2": "test_simple_cache_hit_miss_partial2",
|
||||
},
|
||||
c.value
|
||||
c.value,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue