Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/iris/tests/unit/fileformats/dot/test__dot_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import mock

from iris.fileformats.dot import _dot_path
from iris.fileformats.dot import _dot_path, _DOT_EXECUTABLE_PATH


class Test(tests.IrisTest):
Expand All @@ -37,6 +37,11 @@ def setUp(self):
# reset the caching status to allow us to see what happens
# under different circumstances.
self.patch('iris.fileformats.dot._DOT_CHECKED', new=False)
# Also patch the private path variable to the existing value (i.e. no
# change), and restore it after each test: As these tests modify it,
# that can potentially break subsequent 'normal' behaviour.
self.patch('iris.fileformats.dot._DOT_EXECUTABLE_PATH',
_DOT_EXECUTABLE_PATH)

def test_valid_absolute_path(self):
# Override the configuration value for System.dot_path
Expand Down