Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aduro/datetime_encoder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Encode datetime in json"""

import json
from datetime import datetime

Expand Down
1 change: 1 addition & 0 deletions aduro/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helper methods for the Seluxit API."""

from typing import Any, Union


Expand Down
1 change: 1 addition & 0 deletions aduro/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Data classes for Aduro"""

from __future__ import annotations

from datetime import datetime
Expand Down
1 change: 1 addition & 0 deletions aduro/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Version information for Aduro."""

__version__ = "0.1.0-beta-1"
1 change: 1 addition & 0 deletions tests/model_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test fixtures for the models tests."""

import json

import pytest # noqa E402 # pylint: disable=import-error
Expand Down
1 change: 1 addition & 0 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for helper methodes"""

from aduro.helpers import try_convert_object


Expand Down
1 change: 1 addition & 0 deletions tests/test_json_encoder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test json encoding of datetime objects."""

import datetime
import json

Expand Down
26 changes: 16 additions & 10 deletions tests/test_session_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@ async def test_successful_get(self):
async def test_unsuccessful_get(self):
"""Test get with response code 400."""
aduro_session = AduroSession("session_id")
with patch.object(
aiohttp.ClientSession,
"get",
return_value=self.unsuccessful_response(),
), pytest.raises(AduroResponseError):
with (
patch.object(
aiohttp.ClientSession,
"get",
return_value=self.unsuccessful_response(),
),
pytest.raises(AduroResponseError),
):
await aduro_session._get_url("test_url") # pylint: disable=protected-access

@pytest.mark.asyncio
Expand All @@ -93,11 +96,14 @@ async def test_unsuccessful_patch(self):
"""Test post with response code 400."""
aduro_session = AduroSession("session_id")
data = {"test": "test"}
with patch.object(
aiohttp.ClientSession,
"patch",
return_value=self.unsuccessful_response(),
), pytest.raises(AduroResponseError):
with (
patch.object(
aiohttp.ClientSession,
"patch",
return_value=self.unsuccessful_response(),
),
pytest.raises(AduroResponseError),
):
await aduro_session._patch_url( # pylint: disable=protected-access
"test_url",
data=data,
Expand Down
Loading