Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a1239 commit dece45fCopy full SHA for dece45f
conftest.py
@@ -5,13 +5,14 @@
5
6
from utilities.api_helpers.api import API
7
8
+api = API()
9
domain: str = "www.demoqa.com"
10
path: str = "/"
11
12
13
@pytest.fixture(scope="session")
14
def browser_context_args(browser_context_args: fixture) -> dict:
- response: Union[dict, str] = API.authenticate()
15
+ response: Union[dict, str] = api.authenticate()
16
17
return {
18
**browser_context_args,
utilities/api_helpers/api.py
@@ -18,7 +18,7 @@ def authenticate() -> Union[dict, None]:
tries: int = 10
19
20
while True:
21
- tries = -1
+ tries -= 1
22
23
sleep(random())
24
response: Response = requests.post(url=_url, data=_data)
0 commit comments