Skip to content

Commit 5fc0d43

Browse files
committed
Add underscore to an argument not intended for common use.
1 parent 0abc19c commit 5fc0d43

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

mig/shared/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def is_runtime_configuration(cls, obj):
7878

7979

8080
def get_configuration_object(config_file=None,
81-
skip_log=False, disable_auth_log=False, raw=False):
81+
skip_log=False,
82+
disable_auth_log=False,
83+
_raw=False):
8284
"""Simple helper to call the general configuration init. Optional skip_log
8385
and disable_auth_log arguments are passed on to allow skipping the default
8486
log initialization and disabling auth log for unit tests.
@@ -106,7 +108,7 @@ def get_configuration_object(config_file=None,
106108
configuration = Configuration(_config_file, False, skip_log,
107109
disable_auth_log)
108110

109-
if raw:
111+
if _raw:
110112
return configuration
111113

112114
return RuntimeConfiguration(configuration)

tests/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def _make_configuration_instance(testcase, configuration_to_make):
225225
return FakeConfiguration(logger=testcase.logger)
226226
elif configuration_to_make == 'testconfig':
227227
from mig.shared.conf import get_configuration_object, RuntimeConfiguration
228-
configuration = get_configuration_object(skip_log=True, disable_auth_log=True, raw=True)
228+
configuration = get_configuration_object(skip_log=True, disable_auth_log=True, _raw=True)
229229
return RuntimeConfiguration(configuration)
230230
else:
231231
raise AssertionError(

0 commit comments

Comments
 (0)