Skip to content

Commit

Permalink
chore: flake formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rokam committed Dec 13, 2023
1 parent 79cdaf5 commit 1430e0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions sunweg/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,22 @@ def __init__(self, username: str, password: str) -> None:
self._username = username
self._password = password
self.session = session()
def _set_username(self, username:str) -> None:

def _set_username(self, username: str) -> None:
"""
Set username.
:param username: username for authentication
:type username: str
"""
self._username = username

username = property(None, _set_username)

def _set_password(self, password:str) -> None:
def _set_password(self, password: str) -> None:
"""
Set password.
:param password: password for authentication
:type password: str
"""
Expand Down
1 change: 0 additions & 1 deletion sunweg/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ class Status(Enum):
OK = 0
WARN = 2
ERROR = 1

1 change: 0 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ def test_setters(self) -> None:
api = APIHelper("[email protected]", "password")
assert api._username == "[email protected]"
assert api._password == "password"

api.username = "[email protected]"
api.password = "password1"
assert api._username == "[email protected]"
Expand Down

0 comments on commit 1430e0e

Please sign in to comment.