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

Fix bug in StateFilter.return_expanded() and add some tests. #12016

Merged
merged 4 commits into from
Feb 18, 2022
Merged
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions tests/storage/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,14 +1050,14 @@ def test_return_expanded(self):
),
)

# Member-only state filters stay the same
# Wildcard member-only state filters stay the same
self.assertEqual(
StateFilter.freeze(
{EventTypes.Member: {"@wombat:test", "@alicia:test"}},
{EventTypes.Member: None},
include_others=False,
).return_expanded(),
StateFilter.freeze(
{EventTypes.Member: {"@wombat:test", "@alicia:test"}},
{EventTypes.Member: None},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks---though I think both of these test cases are worth having?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test case just before was a dupe unless I misread.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, right you are.

include_others=False,
),
)
Expand Down