Skip to content

Commit

Permalink
♻️ E2E: provide a requirements file without playwright installed (#7050)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg authored Jan 16, 2025
1 parent 7cba3a6 commit 79d19bf
Show file tree
Hide file tree
Showing 7 changed files with 183 additions and 43 deletions.
2 changes: 2 additions & 0 deletions tests/e2e-playwright/requirements/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
include ../../../requirements/base.Makefile

# Add here any extra explicit dependency: e.g. _migration.txt: _base.txt

_test.txt: _test_wo_playwright.txt
16 changes: 2 additions & 14 deletions tests/e2e-playwright/requirements/_test.in
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
# intra-repo required dependencies
# --requirement ../../../packages/models-library/requirements/_base.in
# NOTE: should be used once this is pydantic V2 comptible
# this only adds playwright
--requirement _test_wo_playwright.txt

arrow
docker
faker
pydantic[email]
pytest-html
pytest-instafail
pytest-playwright
pytest-runner
pytest-sugar
pyyaml
tenacity
httpx
96 changes: 68 additions & 28 deletions tests/e2e-playwright/requirements/_test.txt
Original file line number Diff line number Diff line change
@@ -1,60 +1,86 @@
annotated-types==0.7.0
# via pydantic
# via
# -r requirements/_test_wo_playwright.txt
# pydantic
anyio==4.8.0
# via httpx
# via
# -r requirements/_test_wo_playwright.txt
# httpx
arrow==1.3.0
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
certifi==2024.12.14
# via
# -r requirements/_test_wo_playwright.txt
# httpcore
# httpx
# requests
charset-normalizer==3.4.1
# via requests
# via
# -r requirements/_test_wo_playwright.txt
# requests
dnspython==2.7.0
# via email-validator
# via
# -r requirements/_test_wo_playwright.txt
# email-validator
docker==7.1.0
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
email-validator==2.2.0
# via pydantic
# via -r requirements/_test_wo_playwright.txt
faker==33.3.1
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
greenlet==3.1.1
# via playwright
h11==0.14.0
# via httpcore
# via
# -r requirements/_test_wo_playwright.txt
# httpcore
httpcore==1.0.7
# via httpx
# via
# -r requirements/_test_wo_playwright.txt
# httpx
httpx==0.28.1
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
idna==3.10
# via
# -r requirements/_test_wo_playwright.txt
# anyio
# email-validator
# httpx
# requests
iniconfig==2.0.0
# via pytest
# via
# -r requirements/_test_wo_playwright.txt
# pytest
jinja2==3.1.5
# via pytest-html
# via
# -r requirements/_test_wo_playwright.txt
# pytest-html
markupsafe==3.0.2
# via jinja2
# via
# -r requirements/_test_wo_playwright.txt
# jinja2
packaging==24.2
# via
# -r requirements/_test_wo_playwright.txt
# pytest
# pytest-sugar
playwright==1.49.1
# via pytest-playwright
pluggy==1.5.0
# via pytest
# via
# -r requirements/_test_wo_playwright.txt
# pytest
pydantic==2.10.5
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
pydantic-core==2.27.2
# via pydantic
# via
# -r requirements/_test_wo_playwright.txt
# pydantic
pyee==12.0.0
# via playwright
pytest==8.3.4
# via
# -r requirements/_test_wo_playwright.txt
# pytest-base-url
# pytest-html
# pytest-instafail
Expand All @@ -64,49 +90,63 @@ pytest==8.3.4
pytest-base-url==2.1.0
# via pytest-playwright
pytest-html==4.1.1
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
pytest-instafail==0.5.0
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
pytest-metadata==3.1.1
# via pytest-html
# via
# -r requirements/_test_wo_playwright.txt
# pytest-html
pytest-playwright==0.6.2
# via -r requirements/_test.in
pytest-runner==6.0.1
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
pytest-sugar==1.0.0
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
python-dateutil==2.9.0.post0
# via
# -r requirements/_test_wo_playwright.txt
# arrow
# faker
python-slugify==8.0.4
# via pytest-playwright
pyyaml==6.0.2
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
requests==2.32.3
# via
# -r requirements/_test_wo_playwright.txt
# docker
# pytest-base-url
six==1.17.0
# via python-dateutil
# via
# -r requirements/_test_wo_playwright.txt
# python-dateutil
sniffio==1.3.1
# via anyio
# via
# -r requirements/_test_wo_playwright.txt
# anyio
tenacity==9.0.0
# via -r requirements/_test.in
# via -r requirements/_test_wo_playwright.txt
termcolor==2.5.0
# via pytest-sugar
# via
# -r requirements/_test_wo_playwright.txt
# pytest-sugar
text-unidecode==1.3
# via python-slugify
types-python-dateutil==2.9.0.20241206
# via arrow
# via
# -r requirements/_test_wo_playwright.txt
# arrow
typing-extensions==4.12.2
# via
# -r requirements/_test_wo_playwright.txt
# anyio
# faker
# pydantic
# pydantic-core
# pyee
urllib3==2.3.0
# via
# -r requirements/_test_wo_playwright.txt
# docker
# requests
15 changes: 15 additions & 0 deletions tests/e2e-playwright/requirements/_test_wo_playwright.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# intra-repo required dependencies
# --requirement ../../../packages/models-library/requirements/_base.in
# NOTE: should be used once this is pydantic V2 comptible

arrow
docker
faker
httpx
pydantic[email]
pytest-html
pytest-instafail
pytest-runner
pytest-sugar
pyyaml
tenacity
93 changes: 93 additions & 0 deletions tests/e2e-playwright/requirements/_test_wo_playwright.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
annotated-types==0.7.0
# via pydantic
anyio==4.8.0
# via httpx
arrow==1.3.0
# via -r requirements/_test_wo_playwright.in
certifi==2024.12.14
# via
# httpcore
# httpx
# requests
charset-normalizer==3.4.1
# via requests
dnspython==2.7.0
# via email-validator
docker==7.1.0
# via -r requirements/_test_wo_playwright.in
email-validator==2.2.0
# via pydantic
faker==33.3.1
# via -r requirements/_test_wo_playwright.in
h11==0.14.0
# via httpcore
httpcore==1.0.7
# via httpx
httpx==0.28.1
# via -r requirements/_test_wo_playwright.in
idna==3.10
# via
# anyio
# email-validator
# httpx
# requests
iniconfig==2.0.0
# via pytest
jinja2==3.1.5
# via pytest-html
markupsafe==3.0.2
# via jinja2
packaging==24.2
# via
# pytest
# pytest-sugar
pluggy==1.5.0
# via pytest
pydantic==2.10.5
# via -r requirements/_test_wo_playwright.in
pydantic-core==2.27.2
# via pydantic
pytest==8.3.4
# via
# pytest-html
# pytest-instafail
# pytest-metadata
# pytest-sugar
pytest-html==4.1.1
# via -r requirements/_test_wo_playwright.in
pytest-instafail==0.5.0
# via -r requirements/_test_wo_playwright.in
pytest-metadata==3.1.1
# via pytest-html
pytest-runner==6.0.1
# via -r requirements/_test_wo_playwright.in
pytest-sugar==1.0.0
# via -r requirements/_test_wo_playwright.in
python-dateutil==2.9.0.post0
# via
# arrow
# faker
pyyaml==6.0.2
# via -r requirements/_test_wo_playwright.in
requests==2.32.3
# via docker
six==1.17.0
# via python-dateutil
sniffio==1.3.1
# via anyio
tenacity==9.0.0
# via -r requirements/_test_wo_playwright.in
termcolor==2.5.0
# via pytest-sugar
types-python-dateutil==2.9.0.20241206
# via arrow
typing-extensions==4.12.2
# via
# anyio
# faker
# pydantic
# pydantic-core
urllib3==2.3.0
# via
# docker
# requests
2 changes: 1 addition & 1 deletion tests/e2e-playwright/requirements/_tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pyyaml==6.0.2
# -c requirements/../../../requirements/constraints.txt
# -c requirements/_test.txt
# pre-commit
ruff==0.9.1
ruff==0.9.2
# via -r requirements/../../../requirements/devenv.txt
setuptools==75.8.0
# via pip-tools
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e-playwright/requirements/ci_wo_playwright.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--requirement _test_wo_playwright.txt
pytest-simcore @ ../../packages/pytest-simcore

0 comments on commit 79d19bf

Please sign in to comment.