Skip to content

Commit

Permalink
Add unit test section
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzuRyo61 committed Dec 5, 2023
1 parent 4652e3c commit 2745873
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,14 @@ def test_base_init_raise_not_supported_protocol():
BaseMisskey(
address="ssh://misskey.example.com/",
)


def test_base_init_token_is_same():
"""
The assigned 'token' must be the same.
"""
mk = BaseMisskey(
address="https://misskey.example.com",
token="abcdef1234567890",
)
assert mk.token == "abcdef1234567890"

0 comments on commit 2745873

Please sign in to comment.