Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump black from 22.1.0 to 22.3.0 #1039

Merged
merged 2 commits into from Apr 1, 2022
Merged

Commits on Apr 1, 2022

  1. Bump black from 22.1.0 to 22.3.0

    Bumps [black](https://github.com/psf/black) from 22.1.0 to 22.3.0.
    - [Release notes](https://github.com/psf/black/releases)
    - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
    - [Commits](psf/black@22.1.0...22.3.0)
    
    ---
    updated-dependencies:
    - dependency-name: black
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    fd67df7 View commit details
    Browse the repository at this point in the history
  2. [fix] issue when upgrading from werkzeug v2.0.3 to v2.1.0

    In v2.1.0 werkzeug [1] fixed an issue [2] to keep relative redirect locations by
    default [3].  Since relative locations are returned, we need to fix out test
    cases to avoid AssertionErrors like this one::
    
        ======================================================================
        FAIL: test_index_html_get (tests.unit.test_webapp.ViewsTestCase)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/home/runner/work/searxng/searxng/tests/unit/test_webapp.py", line 105, in test_index_html_get
          self.assertEqual(result.location, 'http://localhost/search?q=test')
        AssertionError: '/search?q=test' != 'http://localhost/search?q=test'
        - /search?q=test
        + http://localhost/search?q=test
    
    [1] https://werkzeug.palletsprojects.com/
    [2] pallets/werkzeug#2352 fixed in
    [3] pallets/werkzeug#2354
    
    Related-to: #1039 (comment)
    Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
    return42 committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    6c747c4 View commit details
    Browse the repository at this point in the history