- apply lint + format fixes to backend - add ci for lint + format fixes for backend - use fixed version of pydantic
		
			
				
	
	
		
			20 lines
		
	
	
		
			497 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			497 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import requests
 | |
| 
 | |
| from .conftest import API_PREFIX
 | |
| 
 | |
| 
 | |
| def test_create_super_user(admin_auth_headers):
 | |
|     assert admin_auth_headers
 | |
|     auth = admin_auth_headers["Authorization"]
 | |
|     token = auth.replace("Bearer ", "")
 | |
|     assert token != "None"
 | |
|     assert len(token) > 4
 | |
| 
 | |
| 
 | |
| def test_create_non_super_user(viewer_auth_headers):
 | |
|     assert viewer_auth_headers
 | |
|     auth = viewer_auth_headers["Authorization"]
 | |
|     token = auth.replace("Bearer ", "")
 | |
|     assert token != "None"
 | |
|     assert len(token) > 4
 |