tests: Set locale environment variables.
To help tests get consistent formatting of currency.
This commit is contained in:
		
							parent
							
								
									f66460f343
								
							
						
					
					
						commit
						eaae2b4a44
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue