whoogle-search/test/conftest.py

14 lines
355 B
Python
Raw Normal View History

from app import app
from app.utils.misc import generate_user_keys
import pytest
@pytest.fixture
def client():
with app.test_client() as client:
with client.session_transaction() as session:
session['uuid'] = 'test'
session['fernet_keys'] = generate_user_keys()
session['config'] = {}
yield client