Skip to content

Commit a5e39b5

Browse files
committed
feat: List folder content and AI QA Hub integration tests (box/box-codegen#878)
1 parent 93aa886 commit a5e39b5

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "0a2740f", "specHash": "8b51a89", "version": "4.0.0" }
1+
{ "engineHash": "522a2bf", "specHash": "8b51a89", "version": "4.0.0" }

test/boxsdk/unit/test_exception.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,14 @@ def test_box_api_exception():
3232
assert box_exception.url == url
3333
assert box_exception.method == method
3434
assert box_exception.context_info == context_info
35-
assert (
36-
str(box_exception)
37-
== f'''Message: {message}
35+
assert str(box_exception) == f'''Message: {message}
3836
Status: {status}
3937
Code: {code}
4038
Request ID: {request_id}
4139
Headers: {headers}
4240
URL: {url}
4341
Method: {method}
4442
Context Info: {context_info}'''
45-
)
4643

4744

4845
@pytest.mark.parametrize('has_network_response', [True, False])
@@ -62,13 +59,10 @@ def test_box_oauth_exception(has_network_response):
6259
method=method,
6360
network_response=network_response,
6461
)
65-
assert (
66-
str(box_exception)
67-
== f'''
62+
assert str(box_exception) == f'''
6863
Message: {message}
6964
Status: {status}
7065
URL: {url}
7166
Method: {method}
7267
Headers: {headers if has_network_response else 'N/A'}'''
73-
)
7468
assert box_exception.network_response is network_response

0 commit comments

Comments
 (0)