Skip to content

Commit

Permalink
fix(bug): update function name
Browse files Browse the repository at this point in the history
  • Loading branch information
giangbui committed Feb 9, 2018
1 parent d3c3714 commit ffc52b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion peregrine/utils/payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_variables(payload):
return variables, errors


def contain_node_category(json, category):
def contain_node_with_category(json, category):
'''
Check if JSON object contain `category` keys or not
Args:
Expand Down
2 changes: 1 addition & 1 deletion tests/graphql/test_graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ def test_export_bagit(monkeypatch,client, submitter, pg_driver_clean, cgci_blgsp
"""}))

monkeypatch.setattr(
peregrine.utils,'contain_node_category',
peregrine.utils,'contain_node_with_category',
lambda x,y: True
)

Expand Down

0 comments on commit ffc52b4

Please sign in to comment.