Skip to content

Commit

Permalink
Update tests coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
apiad committed Jan 27, 2019
1 parent 11a554a commit 8e66fd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 102 deletions.
1 change: 0 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ pytest-cov = "*"
coveralls = "*"

[packages]
pytest-cov = "*"

[requires]
python_version = "3.6"
100 changes: 3 additions & 97 deletions Pipfile.lock

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

8 changes: 4 additions & 4 deletions jsonapi/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_api_return_not_supported():

try:
api({'not_supported'})
assert False
assert False # pragma: no cover
except TypeError as e:
assert 'is not supported' in str(e)

Expand All @@ -47,7 +47,7 @@ def test_api_return_not_supported_query():

try:
api({'not_supported': {'$x': A()}})
assert False
assert False # pragma: no cover
except TypeError as e:
assert 'is not supported' in str(e)

Expand All @@ -60,7 +60,7 @@ def test_jsonobj_repr():
def test_jsonobj_serialize_wrong_type():
try:
obj = JsonObj(a=A())
assert False
assert False # pragma: no cover
except TypeError as e:
assert 'is not supported' in str(e)

Expand All @@ -69,7 +69,7 @@ def test_jsonobj_serialize_wrong_type():

try:
obj.json()
assert False
assert False # pragma: no cover
except TypeError as e:
assert 'is not supported' in str(e)

Expand Down

0 comments on commit 8e66fd2

Please sign in to comment.