summaryrefslogtreecommitdiff
path: root/app/tests/conftest.py
blob: 849b5c5e14ad38bf6380e5300e2ba7aeb284832d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytest

from app import app
from tables import User


@pytest.fixture
def client():
    with app.test_client() as client:
        yield client


@pytest.fixture(scope="module")
def new_user():
    user = User("gymdude99", "bench400soon!", "gymdude99@gmail.com")
    return user