import pytest

from Tests.App import asyncClient


@pytest.mark.anyio
async def testLogin():
    response = await asyncClient.post("/internalLogin",
                                      data={"email": "<EMAIL>", "password": "<PASSWORD>"})
    assert response.status_code == 303


@pytest.mark.anyio
async def testLoginInvalidPassword():
    response = await asyncClient.post("/internalLogin",
                                      data={"email": "<EMAIL>", "password": "password"})
    assert response.status_code == 404


@pytest.mark.anyio
async def testLoginInvalidUser():
    response = await asyncClient.post("/internalLogin",
                                      data={"email": "<EMAIL>", "password": "password"})
    assert response.status_code == 404

import pytest

from Tests.App import asyncClient


@pytest.mark.anyio
async def testLogin():
    response = await asyncClient.post("/internalLogin",
                                      data={"email": "<EMAIL>", "password": "<PASSWORD>"})
    assert response.status_code == 303


@pytest.mark.anyio
async def testLoginInvalidPassword():
    response = await asyncClient.post("/internalLogin",
                                      data={"email": "<EMAIL>", "password": "password"})
    assert response.status_code == 404


@pytest.mark.anyio
async def testLoginInvalidUser():
    response = await asyncClient.post("/internalLogin",
                                      data={"email": "<EMAIL>", "password": "password"})
    assert response.status_code == 404
