Skip to content

Commit

Permalink
Add _get_auth_key_filepath method
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsnodnb committed Jan 24, 2024
1 parent c495694 commit 06199e0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/clients/client/test_get_auth_key_filepath.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from pathlib import Path

import pytest

from kalyke.clients import __Client


@pytest.mark.parametrize(
"auth_key_filepath",
[
Path(__file__).parent.parent / "dummy.p8",
"../dummy.p8",
],
ids=["Path object", "str"],
)
def test_get_auth_key_filepath(auth_key_filepath):
client = __Client()
client.auth_key_filepath = auth_key_filepath

actual = client._get_auth_key_filepath()

assert isinstance(actual, Path)

0 comments on commit 06199e0

Please sign in to comment.