diff --git a/keychain/tests/test_keychain.py b/keychain/tests/test_keychain.py index b18b0a061..5028df60e 100644 --- a/keychain/tests/test_keychain.py +++ b/keychain/tests/test_keychain.py @@ -21,9 +21,8 @@ class TestKeychain(TransactionCase): self.keychain = self.env['keychain.account'] config['keychain_key'] = Fernet.generate_key() - config['running_env'] = "" - self.old_running_env = config['running_env'] + self.old_running_env = config.get('running_env', '') config['running_env'] = None def _init_data(self):