From b9a783eed4f640732316291ab6eeb9647a1354a5 Mon Sep 17 00:00:00 2001 From: Julie Langmann <69699954+jlangmann-aws@users.noreply.github.com> Date: Wed, 25 Oct 2023 21:28:48 +0000 Subject: [PATCH] fix: set DEADLINE_ENABLE_DEVELOPER_OPTIONS to False when running unit test Signed-off-by: Julie Langmann <69699954+jlangmann-aws@users.noreply.github.com> --- .../unit/plugins/test_deadline_submitter_maya.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/deadline_submitter_for_maya/unit/plugins/test_deadline_submitter_maya.py b/test/deadline_submitter_for_maya/unit/plugins/test_deadline_submitter_maya.py index fef6867..a5d6940 100644 --- a/test/deadline_submitter_for_maya/unit/plugins/test_deadline_submitter_maya.py +++ b/test/deadline_submitter_for_maya/unit/plugins/test_deadline_submitter_maya.py @@ -1,5 +1,6 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +import os import re from collections import namedtuple from typing import Any @@ -36,6 +37,7 @@ def test_reload_modules(mock_reload: Mock) -> None: @patch.object(om, "MFnPlugin") @patch.object(DeadlineCloudForMaya, "reload") @patch.object(deadline.maya_submitter.shelf, "build_shelf") +@patch.dict(os.environ, {"DEADLINE_ENABLE_DEVELOPER_OPTIONS": "False"}) def test_initialize_and_uninitialize_plugin( mock_build_shelf: Mock, mock_reload: Mock,