Skip to content

Commit a325e80

Browse files
author
Arsen P
committed
Fix regex handling in household and individual test data generation
- Updated the address field in the households_for_regex and individuals_for_regex functions to remove the raw string notation for brackets, improving consistency in test data creation.
1 parent 1859904 commit a325e80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/test_f_household.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def household(program):
5959
def households_for_regex(program):
6060
from testutils.factories import CountryHouseholdFactory
6161

62-
for add in ["", r"\["]:
62+
for add in ["", "["]:
6363
hsld = CountryHouseholdFactory.create(batch__program=program, batch__country_office=program.country_office)
6464
hsld.flex_fields["address"] = add
6565
hsld.save()
@@ -69,7 +69,7 @@ def households_for_regex(program):
6969
def individuals_for_regex(program):
7070
from testutils.factories import CountryIndividualFactory
7171

72-
for add in ["", r"\["]:
72+
for add in ["", "["]:
7373
indv = CountryIndividualFactory(
7474
household__batch__program=program, household__batch__country_office=program.country_office
7575
)

0 commit comments

Comments
 (0)