diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2021-07-15 15:18:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 12:18:01 -0700 |
commit | 61900c76723ad02b7fb34c7dc052d9bdb418016d (patch) | |
tree | e723fbd68e2368db0b78ad8ddfaef7d34e7b5fb3 /test/units/modules | |
parent | d527be8a524ff0f6bd23dfc48c6b511b9d14ddf8 (diff) | |
download | ansible-61900c76723ad02b7fb34c7dc052d9bdb418016d.tar.gz |
modules moved to use best_parsable_locale (#75250)
* modules moved to use best_parsable_locale
* fixed invocations
* better better
* also module_utils
* converted to function as per fb
* patch testt
* whitespace
Diffstat (limited to 'test/units/modules')
-rw-r--r-- | test/units/modules/test_apt_key.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/units/modules/test_apt_key.py b/test/units/modules/test_apt_key.py index ed83da04aa..e348db0cc4 100644 --- a/test/units/modules/test_apt_key.py +++ b/test/units/modules/test_apt_key.py @@ -9,9 +9,14 @@ from units.compat import unittest from ansible.modules import apt_key +def returnc(x): + return 'C' + + class AptKeyTestCase(unittest.TestCase): @mock.patch.object(apt_key, 'apt_key_bin', '/usr/bin/apt-key') + @mock.patch.object(apt_key, 'lang_env', returnc) @mock.patch.dict(os.environ, {'HTTP_PROXY': 'proxy.example.com'}) def test_import_key_with_http_proxy(self): m_mock = mock.Mock() |