mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-29 17:24:31 -04: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") |