Skip to content

Commit

Permalink
update environment_allure
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexfuz59 authored Apr 15, 2024
1 parent 6b56b3b commit bbb7da6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

@pytest.fixture(autouse=True, scope='function')
def authorization(request):
EnvironmentAllure.create_environment()
authorization = {'app-id': os.getenv('TOKEN')}
request.cls.authorization = authorization
return authorization
Expand All @@ -38,3 +37,8 @@ def post(authorization, user):
post = create_post.check_validate()
yield post
delete_post.request_delete_post(post)


@pytest.fixture(autouse=True, scope='session')
def environment_allure():
EnvironmentAllure.create_environment()

0 comments on commit bbb7da6

Please sign in to comment.