Skip to content

Commit 6bdd39f

Browse files
committed
Fixed tests
1 parent e248791 commit 6bdd39f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ lint: ## check style with flake8
5050
flake8 python_wpapi tests
5151

5252
test: ## run tests quickly with the default Python
53-
py.test
53+
py.test tests/
5454

5555
test-all: ## run tests on every Python version with tox
5656
tox

tests/test_python_wpapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ def test__request_get(mock, api):
233233
'endpoint',
234234
auth=api.auth,
235235
params={'arg1': 'value'},
236-
json={},
236+
json=None,
237237
files=None,
238-
headers={}
238+
headers={'Content-Length': '0'}
239239
)
240240

241241
@patch.object(python_wpapi.requests, 'request')

0 commit comments

Comments
 (0)