diff --git a/api/tests/common/test_commands.py b/api/tests/common/test_commands.py index 8893827eb..4c48feaba 100644 --- a/api/tests/common/test_commands.py +++ b/api/tests/common/test_commands.py @@ -106,7 +106,8 @@ commands = ["createsuperuser", "makemigrations"] @pytest.mark.parametrize("command", commands) -def test_blocked_commands(command): +def test_blocked_commands(command, mocker): + mocker.patch.dict(os.environ, {"FORCE": "0"}) with pytest.raises(CommandError): call_command(command)