Merge pull request #901 from GSA/notify-api-869

flask upgrade
This commit is contained in:
Carlo Costino
2024-05-06 10:31:49 -04:00
committed by GitHub
4 changed files with 521 additions and 529 deletions

1024
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,6 @@ version = "0.1.0"
description = "Notify.gov backend"
authors = ["Your Name <you@example.com>"]
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
@@ -21,24 +20,24 @@ cffi = "==1.16.0"
charset-normalizer = "^3.1.0"
click = "==8.1.7"
click-datetime = "==0.2"
click-didyoumean = "==0.3.0"
click-didyoumean = "==0.3.1"
click-plugins = "==1.1.1"
click-repl = "==0.3.0"
deprecated = "==1.2.14"
eventlet = "==0.36.1"
expiringdict = "==1.2.2"
flask = "~=2.3"
flask = "~=3.0"
flask-bcrypt = "==1.0.1"
flask-marshmallow = "==0.14.0"
flask-marshmallow = "==1.2.1"
flask-migrate = "==4.0.7"
flask-redis = "==0.4.0"
flask-sqlalchemy = "==3.0.5"
gunicorn = {version = "==22.0.0", extras = ["eventlet"]}
iso8601 = "==2.1.0"
jsonschema = {version = "==4.20.0", extras = ["format"]}
jsonschema = {version = "==4.22.0", extras = ["format"]}
lxml = "==5.2.1"
marshmallow = "==3.20.2"
marshmallow-sqlalchemy = "==0.30.0"
marshmallow = "==3.21.2"
marshmallow-sqlalchemy = "==1.0.0"
newrelic = "*"
notifications-python-client = "==9.0.0"
notifications-utils = {git = "https://github.com/GSA/notifications-utils.git"}
@@ -51,7 +50,6 @@ python-dotenv = "==1.0.0"
sqlalchemy = "==1.4.40"
werkzeug = "^3.0.2"
faker = "^24.4.0"
setuptools = "^69.2.0"
[tool.poetry.group.dev.dependencies]
@@ -69,10 +67,10 @@ jinja2-cli = {version = "==0.8.2", extras = ["yaml"]}
moto = "==5.0.5"
pip-audit = "*"
pre-commit = "^3.6.0"
pytest = "^7.4.4"
pytest = "^8.1.1"
pytest-env = "^1.1.3"
pytest-mock = "^3.12.0"
pytest-cov = "^4.1.0"
pytest-mock = "^3.14.0"
pytest-cov = "^5.0.0"
pytest-xdist = "^3.5.0"
radon = "^6.0.1"
requests-mock = "^1.11.0"

View File

@@ -237,7 +237,7 @@ def test_update_template_folder_users(admin_request, sample_service):
[
({}, "name is a required property"),
({"name": None}, "name None is not of type string"),
({"name": ""}, "name is too short"),
({"name": ""}, "name should be non-empty"),
],
)
def test_update_template_folder_fails_if_missing_name(

View File

@@ -89,7 +89,7 @@ def test_create_webauthn_credential_returns_201(admin_request, sample_user):
"name None is not of type string",
),
# name is empty
({"name": "", "credential_data": "ABC123"}, "name is too short"),
({"name": "", "credential_data": "ABC123"}, "name should be non-empty"),
],
)
def test_create_webauthn_credential_errors_if_schema_violation(
@@ -131,7 +131,7 @@ def test_update_webauthn_credential_returns_200(admin_request, sample_user):
# name is null
({"name": None}, "name None is not of type string"),
# name is empty
({"name": ""}, "name is too short"),
({"name": ""}, "name should be non-empty"),
],
)
def test_update_webauthn_credential_errors_if_schema_violation(