Skip to content

Commit

Permalink
fix: set DEADLINE_ENABLE_DEVELOPER_OPTIONS to False when running unit…
Browse files Browse the repository at this point in the history
… test (#40)

Signed-off-by: Julie Langmann <[email protected]>
  • Loading branch information
jlangmann-aws authored Oct 25, 2023
1 parent 6b50bcb commit e36eb03
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e36eb03

Please sign in to comment.