Update test_lib_Cog.py
This commit is contained in:
@@ -6,7 +6,7 @@ from ..lib.CogsPrep import cog_list, work_with_cogs
|
|||||||
|
|
||||||
|
|
||||||
@mock.patch('discord_bot.lib.CogsPrep.cog_list')
|
@mock.patch('discord_bot.lib.CogsPrep.cog_list')
|
||||||
async def test_cog_list(mock_cog_list):
|
def test_cog_list(mock_cog_list):
|
||||||
with mock.patch('discord_bot.lib.CogsPrep.listdir') as MockClass:
|
with mock.patch('discord_bot.lib.CogsPrep.listdir') as MockClass:
|
||||||
MockClass.return_value = ['cog1.py', 'cog2.py']
|
MockClass.return_value = ['cog1.py', 'cog2.py']
|
||||||
result = cog_list()
|
result = cog_list()
|
||||||
|
|||||||
Reference in New Issue
Block a user