refactored mocks for test_run_view.py.

using decorator instead context manager.
refactored mocks for test_key_view.py.

using decorator instead context manager.
refactored mocks for test_login_view.py.

using decorator instead context manager.
refactored mocks for test_signup_view.py.

using decorator instead context manager.
refactored mocks for test_team_view.py.

using decorator instead context manager.