From eaae2b4a44ce8253c6d38f7e3fd575d9b84adc11 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Thu, 28 May 2020 14:58:31 -0400 Subject: [PATCH] tests: Set locale environment variables. To help tests get consistent formatting of currency. --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index cf93428..bb4ffc4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,6 +7,8 @@ from . import testutil @pytest.fixture(scope='session', autouse=True) def clean_environment(tmpdir_factory): config_path_s = str(testutil.test_path('userconfig')) + for key in ['LANG', 'LANGUAGE', 'LC_ALL', 'LC_CTYPE', 'LC_MONETARY']: + os.environ[key] = 'en_US.UTF-8' os.environ.pop('RTAUTH', None) os.environ.pop('RTPASSWD', None) os.environ.pop('RTSERVER', None)