Skip to content

Commit

Permalink
reset to right commit
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Iftime <[email protected]>
  • Loading branch information
VladIftime committed Jan 10, 2025
1 parent 9b7dc34 commit c8d7e26
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/flexmeasures_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ async def request_once(

self.ensure_session()
response = await self.session.request( # type: ignore

method=method,
url=url,
params=params,
Expand Down
5 changes: 0 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import uuid
from datetime import datetime, timedelta, timezone


import pytest
from s2python.common import (
Commodity,
Expand All @@ -14,7 +13,6 @@
Handshake,
NumberRange,
PowerForecastValue,

PowerRange,
ResourceManagerDetails,
Role,
Expand All @@ -34,7 +32,6 @@
PPBCPowerSequenceElement,
)


from flexmeasures_client.s2.utils import get_unique_id


Expand All @@ -58,7 +55,6 @@ def frbc_system_description():

thp_operation_mode = FRBCOperationMode(
id=str(uuid.uuid4()),

elements=[thp_operation_mode_element],
abnormal_condition_only=False,
)
Expand Down Expand Up @@ -233,7 +229,6 @@ def resource_manager_details_ppbc():


@pytest.fixture(scope="session")

def rm_handshake():
return Handshake(
message_id=get_unique_id(),
Expand Down
5 changes: 0 additions & 5 deletions tests/test_cem.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from flexmeasures_client.s2.control_types.PPBC import PPBC



@pytest.mark.asyncio
async def test_handshake(rm_handshake):
cem = CEM(fm_client=None)
Expand Down Expand Up @@ -78,7 +77,6 @@ async def test_resource_manager_details_frbc(

assert (
cem._resource_manager_details == resource_manager_details_frbc

), "CEM should store the resource_manager_details"
assert cem.control_type == ControlType.NO_SELECTION, (
"CEM control type should switch to ControlType.NO_SELECTION,"
Expand All @@ -89,7 +87,6 @@ async def test_resource_manager_details_frbc(
@pytest.mark.asyncio
async def test_activate_control_type_frbc(
frbc_system_description, resource_manager_details_frbc, rm_handshake

):
cem = CEM(fm_client=None)
frbc = FRBCTest()
Expand Down Expand Up @@ -137,7 +134,6 @@ async def test_activate_control_type_frbc(
@pytest.mark.asyncio
async def test_messages_route_to_control_type_handler_frbc(
frbc_system_description, resource_manager_details_frbc, rm_handshake

):
cem = CEM(fm_client=None)
frbc = FRBCTest()
Expand Down Expand Up @@ -381,4 +377,3 @@ async def test_messages_route_to_control_type_handler_ppbc(
ControlType.POWER_PROFILE_BASED_CONTROL
].success_callbacks
), "success callback should be deleted"

0 comments on commit c8d7e26

Please sign in to comment.