fixed start after move
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
version: "1.0"
|
version: "1.0"
|
||||||
bootstrap: |
|
bootstrap: |
|
||||||
rm -rf .idea
|
rm -rf .idea
|
||||||
|
|
||||||
pip install --quiet -U -r requirements.txt
|
pip install --quiet -U -r requirements.txt
|
||||||
profile:
|
profile:
|
||||||
name: qodana.recommended
|
name: qodana.recommended
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ def test_cog_list():
|
|||||||
@pytest.mark.parametrize("cog", ["cog1.py", "cog2"])
|
@pytest.mark.parametrize("cog", ["cog1.py", "cog2"])
|
||||||
@pytest.mark.parametrize("what_do", ['load', 'unload', 'reload', 'disable', 'enable'])
|
@pytest.mark.parametrize("what_do", ['load', 'unload', 'reload', 'disable', 'enable'])
|
||||||
async def test_work_with_cogs(what_do, cog):
|
async def test_work_with_cogs(what_do, cog):
|
||||||
with (mock.patch('bot.lib.CogsPrep.rename') as mock_rename):
|
with mock.patch('bot.lib.CogsPrep.rename') as mock_rename:
|
||||||
mock_rename.return_value = None
|
mock_rename.return_value = None
|
||||||
mock_bot = mock.MagicMock(spec=CommonBotBase)
|
mock_bot = mock.MagicMock(spec=CommonBotBase)
|
||||||
result = await work_with_cogs(what_do, mock_bot, cog)
|
result = await work_with_cogs(what_do, mock_bot, cog)
|
||||||
|
|||||||
Reference in New Issue
Block a user