fixed some mocks in test

This commit is contained in:
Adam Shimali
2016-01-20 16:36:06 +00:00
parent fcedae5fe1
commit 7af53761d9
2 changed files with 9 additions and 8 deletions

View File

@@ -241,7 +241,7 @@ def mock_activate_user(mocker, mock_api_user):
@pytest.fixture(scope='function')
def mock_user_dao_get_user(mocker):
mock_class = mocker.patch('app.main.dao.users_dao.get_user_by_email')
mock_class = mocker.patch('app.main.dao.users_dao.get_user_by_id')
mock_class.return_value = mock_api_user
return mock_class