Skip to content

Commit d54f31b

Browse files
author
Glenn Snyder
committed
revving library and fixing tests
1 parent bb04608 commit d54f31b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

blackduck/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = (0, 0, 42)
1+
VERSION = (0, 0, 43)
22

33
__version__ = '.'.join(map(str, VERSION))

test/test_hub_rest_api_python.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def test_get_headers(mock_hub_instance):
140140
assert mock_hub_instance.get_headers() == {
141141
'X-CSRF-TOKEN': the_csrf_token,
142142
'Authorization': "Bearer {}".format(the_token),
143-
'Content-Type': 'application/json'}
143+
'Content-Type': 'application/json',
144+
'Accept': 'application/json'}
144145

145146
del mock_hub_instance.config['api_token']
146147
for bd_major_version in ["2018", "5", "4", "3"]:
@@ -172,7 +173,8 @@ def test_hub_instance_api_token_for_auth(mock_hub_instance_using_api_token):
172173
assert mock_hub_instance_using_api_token.get_headers() == {
173174
'X-CSRF-TOKEN': invalid_csrf_token,
174175
'Authorization': 'Bearer {}'.format(invalid_bearer_token),
175-
'Content-Type': 'application/json'}
176+
'Content-Type': 'application/json',
177+
'Accept': 'application/json'}
176178

177179
assert 'api_token' in mock_hub_instance_using_api_token.config
178180
assert 'baseurl' in mock_hub_instance_using_api_token.config

0 commit comments

Comments
 (0)