Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use flask-pydantic to validate and parse arguments #11

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions conf/settings.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,6 @@ LOGGING = {
},
}

# Specify which fields are required (in addition to those already required)
# when creating result/group/testcase.
# If you want to set some result's extra-data as required, you can do so by
# prepending 'data.' to the name (e.g. 'data.arch').
REQUIRED_DATA = {
'create_result': [],
'create_group': [],
'create_testcase': [],
}

# Extend the list of allowed outcomes.
ADDITIONAL_RESULT_OUTCOMES = []

Expand Down
53 changes: 26 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ tox = {version = "4.0.0b2", optional = true}
tox-docker = {version = "4.0.0a2", optional = true}

flask-oidc = "^1.4.0"
Flask-RESTful = "^0.3.9"
Flask-SQLAlchemy = "^2.5.1"
SQLAlchemy = {version = "^1.4.39"}
psycopg2-binary = {version = "^2.9.3"}
alembic = "^1.8.1"
iso8601 = "^1.0.2"
Flask-Pydantic = "^0.11.0"

[tool.poetry.extras]
test = [
Expand Down
10 changes: 0 additions & 10 deletions resultsdb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,6 @@ class Config(object):
},
}

# Specify which fields are required (in addition to those already required)
# when creating result/group/testcase.
# If you want to set some result's extra-data as required, you can do so by
# prepending 'data.' to the name (e.g. 'data.arch').
REQUIRED_DATA = {
'create_result': [],
'create_group': [],
'create_testcase': [],
}

# Extend the list of allowed outcomes.
ADDITIONAL_RESULT_OUTCOMES = ()

Expand Down
Loading