Add type hints to test_queries.py

This commit is contained in:
Raphael Pierzina 2018-06-28 13:47:23 +02:00
Родитель 734c4dacd9
Коммит b368ca1753
1 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -1,5 +1,12 @@
# -*- coding: utf-8 -*-
"""UI tests for the queries page."""
import pytest
from models.user import User
from pages.login import LoginPage
@pytest.mark.parametrize(
"search_term, description",
@ -8,7 +15,13 @@ import pytest
("Ashleys Query", "Query created by Ashley."),
],
)
def test_query(create_queries, description, login_page, search_term, user):
def test_query(
create_queries,
login_page: LoginPage,
search_term: str,
description: str,
user: User,
) -> None:
page = login_page.login(email=user.email, password=user.password)
search = page.search(search_term)
query = search.queries[0].click()