tests: Set locale environment variables.

To help tests get consistent formatting of currency.
This commit is contained in:
Brett Smith 2020-05-28 14:58:31 -04:00
parent f66460f343
commit eaae2b4a44

View file

@ -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)