diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2021-11-16 00:12:59 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2021-11-17 00:47:56 +0000 |
commit | 88c69998402a9d1416b822c92ab8b5e08698595d (patch) | |
tree | f810def0c86cc261544eee64e0f6d89fe137b79d | |
parent | Ignore monkey-patching functions. mypy doesn't currently allow this. (diff) | |
download | synapse-88c69998402a9d1416b822c92ab8b5e08698595d.tar.xz |
Pass a fake Connection mock to SQLBaseStore, instead of None.
SQLBaseStore expects the connection to be non-Optional, so we can't just pass none. Note that this parameter isn't even used by the function anyhow. I believe it's only there to satisfy the inherited class it's overriding.
-rw-r--r-- | tests/storage/test_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/storage/test_base.py b/tests/storage/test_base.py |