Skip to content

Commit

Permalink
refactor(tests): remove commented code
Browse files Browse the repository at this point in the history
Signed-off-by: GustaafL <guus@seita.nl>
  • Loading branch information
GustaafL committed Feb 15, 2024
1 parent 1aa78d7 commit 9ecc44f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ async def test_get_access_token() -> None:
ssl=False,
allow_redirects=False,
)
# await flexmeasures_client.close()


@pytest.mark.asyncio
Expand Down Expand Up @@ -202,8 +201,6 @@ async def test_post_measurements() -> None:
allow_redirects=False,
)

# await flexmeasures_client.close()


@pytest.mark.asyncio
async def test_trigger_schedule() -> None:
Expand Down Expand Up @@ -267,8 +264,6 @@ async def test_trigger_schedule() -> None:
allow_redirects=False,
)

# await flexmeasures_client.close()


@pytest.mark.asyncio
async def test_get_schedule_polling() -> None:
Expand Down Expand Up @@ -319,7 +314,6 @@ async def test_get_schedule_polling() -> None:
sensor_id=1, schedule_id="some-uuid", duration="PT45M"
)
assert schedule["values"] == [2.15, 3, 2]
# await flexmeasures_client.close()


@pytest.mark.asyncio
Expand Down Expand Up @@ -348,7 +342,6 @@ async def callback(url, **kwargs):
await flexmeasures_client.get_schedule(
sensor_id=1, schedule_id="some-uuid", duration="PT45M"
)
# await flexmeasures_client.close()


@pytest.mark.asyncio
Expand Down Expand Up @@ -378,8 +371,6 @@ async def test_get_assets() -> None:
assert len(assets) == 1
assert assets[0]["account_id"] == 2

# await flexmeasures_client.close()


@pytest.mark.asyncio
async def test_get_sensors() -> None:
Expand Down Expand Up @@ -410,8 +401,6 @@ async def test_get_sensors() -> None:
== "ea1.1000-01.required-but-unused-field:fm1.2"
)

# await flexmeasures_client.close()


@pytest.mark.asyncio
async def test_get_sensors2() -> None:
Expand All @@ -431,8 +420,6 @@ async def test_get_sensors2() -> None:
):
await flexmeasures_client.get_sensors()

# await flexmeasures_client.close()


@pytest.mark.asyncio
async def test_trigger_and_get_schedule() -> None:
Expand Down Expand Up @@ -493,7 +480,6 @@ async def test_trigger_and_get_schedule() -> None:
flex_model={},
)
assert schedule["values"] == [2.15, 3, 2]
# await flexmeasures_client.close()


@pytest.mark.asyncio
Expand Down Expand Up @@ -532,8 +518,6 @@ async def test_get_sensor_data() -> None:
)
assert sensor_data["values"] == [8.5, 8.5, 8.5]

# await flexmeasures_client.close()


@pytest.mark.asyncio
async def test_reauth_with_access_token() -> None:
Expand Down Expand Up @@ -568,8 +552,6 @@ async def test_reauth_with_access_token() -> None:
allow_redirects=False,
)

# await flexmeasures_client.close()


@pytest.mark.parametrize(
"email, password, payload, error", # noqa: E501
Expand Down Expand Up @@ -605,8 +587,6 @@ async def test_reauth_wrong_cred(email, password, payload, error) -> None:
with pytest.raises(ValueError, match=error):
await flexmeasures_client.get_sensors()

# await flexmeasures_client.close()


@pytest.mark.asyncio
async def test_update_sensor():
Expand Down

0 comments on commit 9ecc44f

Please sign in to comment.