Skip to content

Commit

Permalink
refactor: create_users_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nat754 committed Feb 20, 2024
1 parent cc9274d commit a0f1c0b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion base/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from base.logger import Logger


class BaseRequests():
class BaseRequests:

@staticmethod
def _send(link: str, data: dict, headers: {}, cookies: {}, method: str):
Expand Down
3 changes: 0 additions & 3 deletions data/constant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest
from faker import Faker

faker = Faker('En')
Expand All @@ -23,5 +22,3 @@ class Data:
CREATE_USER_NAME_NONE ={"name": None, "job": faker.job()}
CREATE_USER_JOB_NONE = {"name": faker.name(), "job": None}
LIST_KEY = ['id', 'createdAt', 'name', 'job']
# LIST_KEY = ['id', 'createdAt', pytest.param('name', marks=pytest.mark.xfail(reason='Bag')),
# pytest.param('job', marks=pytest.mark.xfail(reason='Bag'))]
1 change: 0 additions & 1 deletion tests/create_users_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import allure
import pytest
import requests

from base.assertions import Assertions
from data.constant import StatusCode, Data, Constant
from base.methods import BaseRequests
Expand Down

0 comments on commit a0f1c0b

Please sign in to comment.