Add type hints to test_queries.py
This commit is contained in:
Родитель
734c4dacd9
Коммит
b368ca1753
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче