Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (114 loc) · 2.83 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (114 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[project]
name = "api-test-python"
version = "0.1.0"
description = "API testing framework in Python: REST, GraphQL, gRPC, Kafka, PostgreSQL, pytest, Allure"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "API Tester", email = "tester@example.com"}
]
keywords = [
"api-testing",
"pytest",
"grpc",
"kafka",
"graphql",
"sqlalchemy",
"allure",
]
dependencies = [
# HTTP клиенты
"httpx>=0.27.0",
"requests>=2.31.0",
# GraphQL
"gql[all]>=3.5.0",
"graphql-core>=3.2.0",
# gRPC
"grpcio>=1.60.0",
"grpcio-tools>=1.60.0",
"protobuf>=4.25.0",
# Тестирование
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-xdist>=3.5.0",
"pytest-rerunfailures>=13.0",
"pytest-timeout>=2.2.0",
# Отчёты
"allure-pytest>=2.13.0",
# Валидация данных
"pydantic>=2.5.0",
"pydantic-settings>=2.1.0",
"email-validator>=2.0.0",
# Генерация данных
"faker>=22.0.0",
"polyfactory>=2.14.0",
# Утилиты
"python-dotenv>=1.0.0",
"structlog>=24.1.0",
"tenacity>=8.2.0",
"jsonschema>=4.21.0",
# Database
"sqlalchemy[asyncio]>=2.0.0",
"psycopg2-binary>=2.9.9",
"psycopg[binary]>=3.1.0",
"asyncpg>=0.29.0",
# Kafka
"kafka-python>=2.0.2",
"aiokafka>=0.10.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.1.0",
"mypy>=1.8.0",
"pre-commit>=3.6.0",
"types-requests>=2.31.0",
]
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["."]
include = ["src*", "tests*", "config*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = [
"-v",
"--tb=short",
"--strict-markers",
]
markers = [
"smoke: Quick sanity tests (select with '-m smoke')",
"regression: Full regression suite",
"rest: REST API tests",
"graphql: GraphQL tests",
"grpc: gRPC tests",
"async_test: Async tests",
"slow: Slow tests (deselect with '-m \"not slow\"')",
"negative: Negative test cases",
"crud: CRUD operations",
"auth: Authentication tests",
"streaming: Streaming tests",
"database: Database verification tests",
"kafka: Kafka messaging tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::pytest.PytestUnraisableExceptionWarning",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
plugins = ["pydantic.mypy"]