Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Sep 22, 2023
1 parent 24c2c6e commit 2313771
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/redturtle/prenotazioni/tests/test_prenotazioni_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,10 @@ def test_search_by_fiscalcode(self):

def test_search_by_fiscalcode_case_insensitive(self):
# ABCDEF12G34H567I -> AbCdEf12G34H567i
camelcase_fiscalcode = "".join(
x + y
for x, y in zip(
self.testing_fiscal_code[0::2].upper(),
self.testing_fiscal_code[1::2].lower(),
)
)
camelcase_fiscalcode = "".join([
c.upper() if i % 2 == 0 else c.lower()
for i, c in enumerate(self.testing_fiscal_code)
])
result_uids = [
i["booking_id"]
for i in self.api_session.get(
Expand Down

0 comments on commit 2313771

Please sign in to comment.