diff --git a/api/tests/common/test_commands.py b/api/tests/common/test_commands.py index 59c900d0b..2c3d67a38 100644 --- a/api/tests/common/test_commands.py +++ b/api/tests/common/test_commands.py @@ -117,7 +117,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)