diff options
author | 2022-04-02 22:44:53 +0100 | |
---|---|---|
committer | 2022-04-18 17:45:31 +0100 | |
commit | 56e38eeb38de10611611f0f81f5cbc429d7f2bc8 (patch) | |
tree | 997a37cb873ee14c998cf4ceb54e9fe075febae7 /tests/test_helpers.py | |
parent | Adding missing kwargs required by BotBase in test helper (diff) |
Update test helpers with breaking d.py changes
region was removed from the guild object, so this has been replaced with features
add_cog is now async, so it is now an async_mock during tests
Two new required voice_channel attrs were added
channel.type is required to be set to ChannelType due to a new isinstance check in d.py
Diffstat (limited to 'tests/test_helpers.py')
-rw-r--r-- | tests/test_helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 81285e009..f3040b305 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -327,7 +327,7 @@ class MockObjectTests(unittest.TestCase): def test_spec_propagation_of_mock_subclasses(self): """Test if the `spec` does not propagate to attributes of the mock object.""" test_values = ( - (helpers.MockGuild, "region"), + (helpers.MockGuild, "features"), (helpers.MockRole, "mentionable"), (helpers.MockMember, "display_name"), (helpers.MockBot, "owner_id"), |