Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
idomic committed Apr 26, 2022
1 parent e859a93 commit 8a5c8c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/cli/test_cloud.py
Expand Up @@ -432,9 +432,7 @@ def test_email_write_only_once(tmp_directory, monkeypatch):
monkeypatch.setattr(telemetry, 'DEFAULT_HOME_DIR', '.')
input_mock = Mock(return_value='some1@email.com')
monkeypatch.setattr(cloud, '_get_input', input_mock)

settings = telemetry.UserSettings
settings.user_email = 'some@email.com'
monkeypatch.setattr(telemetry.UserSettings, 'user_email', 'some@email.com')

cloud._email_input()
assert not input_mock.called
Expand Down

0 comments on commit 8a5c8c7

Please sign in to comment.