def METHOD_NAME(client):
    mindsdb_data = {
        'database': {
            'engine': 'postgres',
            'parameters': {}
        }
    }
    response = client.post('/api/databases', json=mindsdb_data, follow_redirects=True)
    assert '400' in response.status