Skip to content

Commit

Permalink
Update redirector tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Dec 2, 2020
1 parent 0c6758f commit f9528cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions redirector/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ def test_redirect_calculate_redirect_default_experiment():
assert distribution == 'default'


@patch('main.redirect')
def test_main_index(redirect_mock):
main.index()
redirect_mock.assert_called_with('https://snippets.cdn.mozilla.net/')
def test_main_index():
assert main.index() == ''


def test_main_healthz():
Expand Down

0 comments on commit f9528cb

Please sign in to comment.