Compare commits
1 Commits
8f1d4a339e
...
1174eda171
Author | SHA1 | Date |
---|---|---|
Yoann Laissus | 1174eda171 |
|
@ -44,9 +44,9 @@ def test_initialize_without_configuration_should_only_set_default_environment():
|
||||||
module.initialize({})
|
module.initialize({})
|
||||||
|
|
||||||
assert {key: value for key, value in os.environ.items() if key.startswith('BORG_')} == {
|
assert {key: value for key, value in os.environ.items() if key.startswith('BORG_')} == {
|
||||||
'BORG_RELOCATED_REPO_ACCESS_IS_OK': 'no',
|
'BORG_RELOCATED_REPO_ACCESS_IS_OK': 'NO',
|
||||||
'BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK': 'no',
|
'BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK': 'NO',
|
||||||
'BORG_CHECK_I_KNOW_WHAT_I_AM_DOING': 'no',
|
'BORG_CHECK_I_KNOW_WHAT_I_AM_DOING': 'NO',
|
||||||
}
|
}
|
||||||
finally:
|
finally:
|
||||||
os.environ = orig_environ
|
os.environ = orig_environ
|
||||||
|
@ -58,7 +58,7 @@ def test_initialize_with_relocated_repo_access_should_override_default():
|
||||||
try:
|
try:
|
||||||
os.environ = {}
|
os.environ = {}
|
||||||
module.initialize({'relocated_repo_access_is_ok': True})
|
module.initialize({'relocated_repo_access_is_ok': True})
|
||||||
assert os.environ.get('BORG_RELOCATED_REPO_ACCESS_IS_OK') == 'yes'
|
assert os.environ.get('BORG_RELOCATED_REPO_ACCESS_IS_OK') == 'YES'
|
||||||
finally:
|
finally:
|
||||||
os.environ = orig_environ
|
os.environ = orig_environ
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ def test_initialize_with_check_i_know_what_i_am_doing_should_override_default():
|
||||||
try:
|
try:
|
||||||
os.environ = {}
|
os.environ = {}
|
||||||
module.initialize({'check_i_know_what_i_am_doing': True})
|
module.initialize({'check_i_know_what_i_am_doing': True})
|
||||||
assert os.environ.get('BORG_CHECK_I_KNOW_WHAT_I_AM_DOING') == 'yes'
|
assert os.environ.get('BORG_CHECK_I_KNOW_WHAT_I_AM_DOING') == 'YES'
|
||||||
finally:
|
finally:
|
||||||
os.environ = orig_environ
|
os.environ = orig_environ
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue