Skip to content

Commit

Permalink
test: remove generate_oauth test
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 31, 2021
1 parent c4f8c54 commit fba3f92
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/tesla_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ def __init__(self, monkeypatch) -> None:
Controller, "get_last_update_time", self.mock_get_last_update_time
)
self._monkeypatch.setattr(Controller, "update", self.mock_update)
self._monkeypatch.setattr(
Connection, "generate_oauth", self.mock_generate_oauth
)

def mock_connect(self, *args, **kwargs):
# pylint: disable=unused-argument
Expand Down Expand Up @@ -95,11 +92,6 @@ def mock_update(self, *args, **kwargs):
""" Mock controller's update method."""
return self.controller_update()

def mock_generate_oauth(self, *args, **kwargs):
# pylint: disable=unused-argument
""" Mock connection's generate_oauth method."""
return self.connection_generate_oauth()

@staticmethod
def controller_connect():
""" Monkeypatch for controller.connect()."""
Expand Down

0 comments on commit fba3f92

Please sign in to comment.