Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix incorrect return value in tests. #11359

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/11359.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Require all files in synapse/ and tests/ to pass mypy unless specifically excluded.
2 changes: 1 addition & 1 deletion tests/storage/test_rollback_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def fake_listdir(filepath: str) -> List[str]:
A list of files and folders in the directory.
"""
if filepath.endswith("full_schemas"):
return [SCHEMA_VERSION]
return [str(SCHEMA_VERSION)]

return ["99_add_unicorn_to_database.sql"]

Expand Down