tests: changed mocked "file()" to mocked "open()" (#36216)
This commit is contained in:
parent
2b3d15c97e
commit
269d794048
|
@ -8,7 +8,7 @@ LANGUAGE_CODE = 'en-us'
|
||||||
|
|
||||||
PROJECT_NAME = 'multipublik'
|
PROJECT_NAME = 'multipublik'
|
||||||
|
|
||||||
with patch.object(builtin, 'file', mock_open(read_data='xxx')):
|
with patch.object(builtin, 'open', mock_open(read_data='xxx')):
|
||||||
execfile(os.path.join(os.path.dirname(__file__), '../debian/debian_config_common.py'))
|
execfile(os.path.join(os.path.dirname(__file__), '../debian/debian_config_common.py'))
|
||||||
|
|
||||||
BRANCH_NAME = os.environ.get("BRANCH_NAME", "").replace('/', '-')
|
BRANCH_NAME = os.environ.get("BRANCH_NAME", "").replace('/', '-')
|
||||||
|
|
Loading…
Reference in New Issue