diff --git a/.codegen.json b/.codegen.json index 1b512b9d5..82f16c049 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "0a2740f", "specHash": "8b51a89", "version": "4.0.0" } +{ "engineHash": "522a2bf", "specHash": "8b51a89", "version": "4.0.0" } diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index 422d29d7c..61464c9ed 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.8" + python-version: "3.11" - name: Install Tox run: pip install tox diff --git a/test/boxsdk/unit/test_exception.py b/test/boxsdk/unit/test_exception.py index dbc109d45..8086f3a1c 100644 --- a/test/boxsdk/unit/test_exception.py +++ b/test/boxsdk/unit/test_exception.py @@ -32,9 +32,7 @@ def test_box_api_exception(): assert box_exception.url == url assert box_exception.method == method assert box_exception.context_info == context_info - assert ( - str(box_exception) - == f'''Message: {message} + assert str(box_exception) == f'''Message: {message} Status: {status} Code: {code} Request ID: {request_id} @@ -42,7 +40,6 @@ def test_box_api_exception(): URL: {url} Method: {method} Context Info: {context_info}''' - ) @pytest.mark.parametrize('has_network_response', [True, False]) @@ -62,13 +59,10 @@ def test_box_oauth_exception(has_network_response): method=method, network_response=network_response, ) - assert ( - str(box_exception) - == f''' + assert str(box_exception) == f''' Message: {message} Status: {status} URL: {url} Method: {method} Headers: {headers if has_network_response else 'N/A'}''' - ) assert box_exception.network_response is network_response diff --git a/tox.ini b/tox.ini index e62526c34..249d1e2ac 100644 --- a/tox.ini +++ b/tox.ini @@ -41,12 +41,12 @@ deps = [testenv:format] commands = - black --skip-string-normalization . + black --preview --skip-string-normalization . deps = black [testenv:format-check] commands = - black --skip-string-normalization --check . + black --preview --skip-string-normalization --check . deps = black