Skip to content

Commit 582308a

Browse files
ELI-615 | more linting
1 parent f02fb28 commit 582308a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

tests/integration/in_process/test_eligibility_endpoint.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import json
2-
from datetime import date, timedelta, datetime, timezone
2+
from datetime import UTC, date, datetime, timedelta
33
from http import HTTPStatus
44

55
import pytest
@@ -26,7 +26,10 @@
2626
from tests.fixtures.builders.model import rule
2727
from tests.integration.conftest import UNIQUE_CONSUMER_HEADER
2828

29-
today = lambda: datetime.now(timezone.utc).date()
29+
30+
def today():
31+
return datetime.now(UTC).date()
32+
3033

3134
class TestBaseLine:
3235
def test_nhs_number_given(
@@ -1226,7 +1229,7 @@ def test_valid_response_when_consumer_has_a_valid_campaign_config_mapping( # no
12261229
],
12271230
indirect=["campaign_configs", "consumer_mappings"],
12281231
)
1229-
def test_if_correct_campaign_is_chosen_for_the_consumer_when_multiple_campaign_exists_per_target_giving_same_status(
1232+
def test_if_correct_campaign_is_chosen_for_the_consumer_when_multiple_campaign_exists_per_target_giving_same_status( # noqa : PLR0913
12301233
self,
12311234
client: FlaskClient,
12321235
persisted_person: NHSNumber,
@@ -1412,7 +1415,7 @@ def test_if_campaign_having_best_status_is_chosen_if_there_exists_multiple_campa
14121415
),
14131416
],
14141417
)
1415-
def test_if_campaign_having_best_status_is_chosen_if_there_exists_multiple_campaign_per_target_diff_start_date(
1418+
def test_if_campaign_having_best_status_is_chosen_if_there_exists_multiple_campaign_per_target_diff_start_date( # noqa : PLR0913
14161419
self,
14171420
client: FlaskClient,
14181421
persisted_person_pc_sw19: NHSNumber,

0 commit comments

Comments
 (0)