Skip to content

Commit

Permalink
tests: Remove redundant backend tests
Browse files Browse the repository at this point in the history
Fix requirements as pytest-flask not yet compatible with flask 3.

This leaves one very basic test which tests to see if the page loads
without any javascript errors. Further tests are needed to test
interactions. When we have a live backend for this this will be able to
be added.
  • Loading branch information
michaelwood committed Jan 25, 2024
1 parent 66eb67b commit a6cb9cd
Show file tree
Hide file tree
Showing 22 changed files with 174 additions and 7,258 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
pip install -r requirements_dev.txt
git submodule update --init --recursive
- name: Test with pytest
run: pytest tests/ --cov-append --cov
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flask
flask==2.3
requests
gunicorn
35 changes: 19 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,33 @@
#
# pip-compile requirements.in
#
certifi==2021.5.30
blinker==1.6.3
# via flask
certifi==2023.7.22
# via requests
chardet==4.0.0
charset-normalizer==3.3.0
# via requests
click==8.0.1
click==8.1.7
# via flask
flask==2.0.1
flask==2.3
# via -r requirements.in
gunicorn==20.1.0
gunicorn==21.2.0
# via -r requirements.in
idna==2.10
idna==3.4
# via requests
itsdangerous==2.0.1
itsdangerous==2.1.2
# via flask
jinja2==3.0.1
jinja2==3.1.2
# via flask
markupsafe==2.0.1
# via jinja2
requests==2.25.1
markupsafe==2.1.3
# via
# jinja2
# werkzeug
packaging==23.2
# via gunicorn
requests==2.31.0
# via -r requirements.in
urllib3==1.26.5
urllib3==2.0.6
# via requests
werkzeug==2.0.1
werkzeug==3.0.0
# via flask

# The following packages are considered to be unsafe in a requirements file:
# setuptools
3 changes: 1 addition & 2 deletions dev-requirements.in → requirements_dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
black
isort
pytest
pytest-flask
pytest-cov
pytest-flask
coverage
requests_mock
selenium
chromedriver-autoinstaller
coveralls
138 changes: 138 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile requirements_dev.in
#
attrs==23.1.0
# via
# outcome
# trio
black==23.9.1
# via -r requirements_dev.in
blinker==1.6.3
# via
# -r requirements.txt
# flask
certifi==2023.7.22
# via
# -r requirements.txt
# requests
# selenium
charset-normalizer==3.3.0
# via
# -r requirements.txt
# requests
chromedriver-autoinstaller==0.6.2
# via -r requirements_dev.in
click==8.1.7
# via
# -r requirements.txt
# black
# flask
coverage[toml]==6.5.0
# via
# -r requirements_dev.in
# coveralls
# pytest-cov
coveralls==3.3.1
# via -r requirements_dev.in
docopt==0.6.2
# via coveralls
exceptiongroup==1.1.3
# via
# pytest
# trio
# trio-websocket
flask==2.3
# via
# -r requirements.txt
# pytest-flask
gunicorn==21.2.0
# via -r requirements.txt
h11==0.14.0
# via wsproto
idna==3.4
# via
# -r requirements.txt
# requests
# trio
iniconfig==2.0.0
# via pytest
isort==5.12.0
# via -r requirements_dev.in
itsdangerous==2.1.2
# via
# -r requirements.txt
# flask
jinja2==3.1.2
# via
# -r requirements.txt
# flask
markupsafe==2.1.3
# via
# -r requirements.txt
# jinja2
# werkzeug
mypy-extensions==1.0.0
# via black
outcome==1.2.0
# via trio
packaging==23.2
# via
# -r requirements.txt
# black
# gunicorn
# pytest
pathspec==0.11.2
# via black
platformdirs==3.11.0
# via black
pluggy==1.3.0
# via pytest
pysocks==1.7.1
# via urllib3
pytest==7.4.2
# via
# -r requirements_dev.in
# pytest-cov
# pytest-flask
pytest-cov==4.1.0
# via -r requirements_dev.in
pytest-flask==1.2.0
# via -r requirements_dev.in
requests==2.31.0
# via
# -r requirements.txt
# coveralls
selenium==4.14.0
# via -r requirements_dev.in
sniffio==1.3.0
# via trio
sortedcontainers==2.4.0
# via trio
tomli==2.0.1
# via
# black
# coverage
# pytest
trio==0.22.2
# via
# selenium
# trio-websocket
trio-websocket==0.11.1
# via selenium
typing-extensions==4.8.0
# via black
urllib3[socks]==2.0.6
# via
# -r requirements.txt
# requests
# selenium
werkzeug==3.0.0
# via
# -r requirements.txt
# flask
# pytest-flask
wsproto==1.2.0
# via trio-websocket
121 changes: 0 additions & 121 deletions tests/disabled_test_file_upload.py

This file was deleted.

14 changes: 0 additions & 14 deletions tests/sample-data/360-giving-package-schema.json

This file was deleted.

Loading

0 comments on commit a6cb9cd

Please sign in to comment.