jwhitlock · GitHub

@bookshelfdave

@bookshelfdave

@codecov-io

Codecov Report

Merging #4220 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4220      +/-   ##
==========================================
+ Coverage   86.31%   86.31%   +<.01%     
==========================================
  Files         147      148       +1
  Lines        9103     9105       +2
  Branches     1222     1222
==========================================
+ Hits         7857     7859       +2     
  Misses       1005     1005
  Partials      241      241
Impacted Files Coverage Δ
kuma/settings/common.py 93.33% <ø> (ø) ⬆️
kuma/redirects/redirects.py 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c59c5e...4c9e6af. Read the comment docs.

jwhitlock

@pytest.mark.nondestructive
@pytest.mark.parametrize('url', REDIRECT_URLS)
def test_redirects(url):
url['base_url'] = "https://developer.mozilla.org"

url_test("/media/uploads/demos/foobar123",
"/docs/Web/Demos_of_open_web_technologies/",
status_code=requests.codes.found),
"/docs/Web/Demos_of_open_web_technologies/",
status_code=requests.codes.found),

url_test("/foo//bar", "/foo_bar"),
status_code=requests.codes.found),

url_test("/foo//bar", "/foo_bar"),
url_test("/foo//bar//baz", "/foo_bar_baz"),

@bookshelfdave

jwhitlock

@bookshelfdave

@jwhitlock

@jwhitlock

Closed

Read the original on github.com ↗