mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 00:53:08 +00:00 
			
		
		
		
	* use pytest for tests Eh ouais, il y a que la config qui change. Pytest est implémentable par étapes. Et ça c'est beau. * rework tests with pytest * remove unittest custom TestRunner * Edit doc and CI
		
			
				
	
	
		
			15 lines
		
	
	
		
			364 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			364 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import pytest
 | |
| from django.core.management import call_command
 | |
| from django.utils.translation import activate
 | |
| 
 | |
| 
 | |
| @pytest.fixture(scope="session")
 | |
| def django_db_setup(django_db_setup, django_db_blocker):
 | |
|     with django_db_blocker.unblock():
 | |
|         call_command("setup")
 | |
| 
 | |
| 
 | |
| @pytest.fixture(scope="session", autouse=True)
 | |
| def set_default_language():
 | |
|     activate("fr")
 |