Skip to content

Commit ed78c45

Browse files
authored
Enable e2e tests for main and admin apis (#453)
* Enable e2e tests for main and admin apis Signed-off-by: Mihai Criveti <[email protected]> * Add pytest-env to fix admin tests Signed-off-by: Mihai Criveti <[email protected]> --------- Signed-off-by: Mihai Criveti <[email protected]>
1 parent ad20942 commit ed78c45

File tree

3 files changed

+294
-228
lines changed

3 files changed

+294
-228
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ dev = [
131131
"pytest>=8.4.1",
132132
"pytest-asyncio>=1.0.0",
133133
"pytest-cov>=6.2.1",
134+
"pytest-env>=1.1.5",
134135
"pytest-examples>=0.0.18",
135136
"pytest-md-report>=0.7.0",
136137
"pytest-rerunfailures>=15.1",
@@ -321,6 +322,11 @@ filterwarnings = [
321322
"ignore:Passing 'msg' argument to .*\\.cancel\\(\\) is deprecated:DeprecationWarning", # From 3rd party libraries
322323
]
323324

325+
# Set environment variables for all tests
326+
env = [
327+
"MCPGATEWAY_ADMIN_API_ENABLED=true",
328+
"MCPGATEWAY_UI_ENABLED=true"
329+
]
324330
# ── fawltydeps ─────────────────────────────────────────────────────
325331
[tool.fawltydeps]
326332
# only parse main pyproject.toml

0 commit comments

Comments
 (0)