mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	
		
			
	
	
		
			9 lines
		
	
	
		
			296 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			9 lines
		
	
	
		
			296 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								from mealie.core.config import determine_sqlite_path, settings
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								DB_URL = determine_sqlite_path(path=True, suffix="test")
							 | 
						||
| 
								 | 
							
								DB_URL.unlink(missing_ok=True)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								if settings.DB_ENGINE != "postgres":
							 | 
						||
| 
								 | 
							
								    # Monkeypatch Database Testing
							 | 
						||
| 
								 | 
							
								    settings.DB_URL = determine_sqlite_path(path=False, suffix="test")
							 |