Skip to content

Commit

Permalink
removed unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Jan 4, 2021
1 parent a0c0959 commit 9b61677
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions securedrop/tests/test_journalist.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,6 @@ def test_user_does_not_see_v2_eol_warning_if_only_v3_enabled(config, journalist_
assert "v2-onion-eol" not in text, text


def test_user_sees_v2_eol_warning_if_both_urls_do_not_exist(config, journalist_app, test_journo):
journalist_app.config.update(V2_ONION_ENABLED=False, V3_ONION_ENABLED=False)
with journalist_app.test_client() as app:
_login_user(
app,
test_journo['username'],
test_journo['password'],
test_journo['otp_secret'])

resp = app.get(url_for('main.index'))

text = resp.data.decode('utf-8')
assert "v2-onion-eol" in text, text


def test_user_with_whitespace_in_username_can_login(journalist_app):
# Create a user with whitespace at the end of the username
with journalist_app.app_context():
Expand Down

0 comments on commit 9b61677

Please sign in to comment.