Skip to content

Conversation

@lukaszsocha2
Copy link
Contributor

Closes: SDK-2089
Fixes: #715

@coveralls
Copy link

coveralls commented Mar 23, 2022

Pull Request Test Coverage Report for Build 2033988393

  • 7 of 8 (87.5%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 93.566%

Changes Missing Coverage Covered Lines Changed/Added Lines %
boxsdk/object/upload_session.py 7 8 87.5%
Totals Coverage Status
Change from base Build 2033986730: -0.02%
Covered Lines: 3301
Relevant Lines: 3528

💛 - Coveralls

antusus
antusus previously approved these changes Mar 23, 2022
Copy link
Contributor

@antusus antusus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

data=json.dumps(body),
)
except BoxAPIException as box_api_exc:
if box_api_exc.status == 202:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use this from http module:

Suggested change
if box_api_exc.status == 202:
if box_api_exc.status == HTTPStatus.ACCEPTED:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point

@lukaszsocha2 lukaszsocha2 force-pushed the sdk-2089-upload_session_commit_not_returning_none_on_202 branch from d9d2a92 to e13fa00 Compare March 24, 2022 11:27
Copy link
Contributor

@antusus antusus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lukaszsocha2 lukaszsocha2 merged commit 86a1856 into main Mar 24, 2022
@lukaszsocha2 lukaszsocha2 deleted the sdk-2089-upload_session_commit_not_returning_none_on_202 branch March 24, 2022 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upload_session commit not returning None when there is a 202

5 participants