The previous test patched api_calls.db_get and pygsheets.authorize then called those mocks directly—never invoking any cog method. The test passed even when all cog code was deleted. Replace with a test that retrieves the real pull_roster_command.callback from the cog instance, patches dependencies at the correct module-level names, calls the callback, and asserts ctx.send was called with the expected error message. If the cog cannot be imported, the test skips gracefully via pytest.skip. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| command_logic | ||
| gameplay_models | ||
| in_game | ||
| other | ||
| players_refactor | ||
| scouting | ||
| conftest.py | ||
| factory.py | ||
| test_api_calls.py | ||
| test_play_locking.py | ||