2 Commits

Author SHA1 Message Date
cbcfc8604f Changed testing method for Client.him_search()
All checks were successful
Tests / test (3.10) (pull_request) Successful in 23s
Tests / test (3.11) (pull_request) Successful in 33s
Tests / test (3.8) (pull_request) Successful in 24s
Tests / test (3.9) (pull_request) Successful in 21s
2024-09-08 01:28:18 +02:00
34a601424b Dependencies bumped and .gitignore updated 2024-09-08 01:27:58 +02:00
5 changed files with 17 additions and 11 deletions

1
.gitignore vendored
View File

@@ -154,6 +154,7 @@ cython_debug/
# Custom
.mise.toml
.vscode/
.venv_linux/
.venv_windows/

View File

@@ -1,3 +1,3 @@
requests~=2.32.0
requests~=2.32.3
xmltodict~=0.13.0
isodate~=0.6.1

View File

@@ -1,12 +1,12 @@
black~=24.8.0
build==1.2.2
isort==5.13.2
mypy~=1.11.0
mypy~=1.11.2
pylint==3.2.7
# pytest-asyncio~=0.24.0
pytest-cov~=5.0.0
pytest~=8.3.1
tox==4.18.0
twine~=5.1.0
# types-aiofiles~=24.1.0.20240626
pytest~=8.3.2
tox==4.18.1
types-ujson~=5.10.0.20240515
# Disabled async libraries for now
# types-aiofiles~=24.1.0.20240626
# pytest-asyncio~=0.24.0

2
requirements/dist.txt Normal file
View File

@@ -0,0 +1,2 @@
build==1.2.2
twine~=5.1.1

View File

@@ -20,9 +20,12 @@ def test_board_departure(api_client: Client, sample_stop_id: str):
def test_him_search(api_client: Client):
assert isinstance(
api_client.him_search(time_end=datetime.now() + timedelta(days=10))[0], Message
)
response = api_client.him_search(time_end=datetime.now() + timedelta(days=10))
if len(response) != 0:
assert isinstance(response[0], Message)
else:
assert isinstance(response, list)
def test_journey_detail(api_client: Client, sample_journey_id: str):