Skip to content

Commit 77970af

Browse files
author
jamesalbert
committed
merge and fix
1 parent bc9bf1a commit 77970af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_sqlalchemy_data_layer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,7 @@ def test_Node(person_model, person_schema, monkeypatch):
364364

365365

366366
def test_check_method_requirements(monkeypatch):
367-
class Self(object):
368-
def __init__(self):
369-
pass
367+
self = type('self', (object,), dict())
370368
request = type('request', (object,), dict(method=None))
371369
monkeypatch.setattr(flask_rest_jsonapi.decorators, 'request', request)
372370
with pytest.raises(Exception):

0 commit comments

Comments
 (0)