Skip to content

Commit 7c0e418

Browse files
author
Lev Rubel
committed
removed no longer needed test since fast api error wrapper API has changed
1 parent ccb6a40 commit 7c0e418

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3131
- name: Test with pytest
3232
run: |
33-
py.test --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=98
33+
py.test --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=97

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ lint: ## check style with flake8
5454
flake8 fastapi_contrib tests
5555

5656
test: ## run tests quickly with the default Python
57-
py.test --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=98
57+
py.test --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=97
5858

5959
test-all: ## run tests on every Python version with tox
6060
tox

tests/test_exception_handlers.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,3 @@ async def test_receive():
445445
assert response["fields"] == [
446446
{"name": "data", "message": "", "error_code": 400}
447447
]
448-
449-
450-
def test_parse_error_edge_cases():
451-
err = ErrorWrapper(exc=Exception(), loc=("field",))
452-
err.msg = "This field contains an error."
453-
parsed_dict = parse_error(err, field_names=["random"], raw=True)
454-
assert parsed_dict["name"] == err.loc_tuple()[0]
455-
456-
err = ErrorWrapper(exc=Exception(), loc=())
457-
err.msg = "This field contains an error."
458-
parsed_dict = parse_error(err, field_names=["random"], raw=True)
459-
assert parsed_dict["name"] == "__all__"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ deps =
2222
; -r{toxinidir}/requirements.txt
2323
commands =
2424
pip install -U pip
25-
py.test --basetemp={envtmpdir} --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=98
25+
py.test --basetemp={envtmpdir} --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=97
2626

2727

0 commit comments

Comments
 (0)