Skip to content

Commit 44226f8

Browse files
committed
amend regex to look for any digit in pattern
1 parent 83cefeb commit 44226f8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

scripts/jobs/housing/housing_dwellings_list_gx_suite.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ class ExpectLLPGColumnValueLengthsBetween(gxe.ExpectColumnValueLengthsToBeBetwee
3131

3232
class ExpectBlockRefNoColumnValuesToMatchRegex(gxe.ExpectColumnValuesToMatchRegex):
3333
column: str = "block_reference_number"
34-
regex: str = r"^[0-9]\d+$"
35-
description: str = "Expect Block Reference Number to match regex ^[0-9]\d+$ (numerical)"
34+
regex: str = "^\d+$"
35+
description: str = "Expect Block Reference Number to match regex ^\d+$ (numerical)"
3636

3737

3838
class ExpectLLPGColumnValuesToMatchRegex(gxe.ExpectColumnValuesToMatchRegex):
3939
column: str = "llpg"
40-
regex: str = r"^[1-9]\d{10,11}"
40+
regex: str = "^[1-9]\d{10,11}"
4141
description: str = "Expect UPRN (LLPG) to match regex ^[1-9]\d{10,11} (starting with digit 1-9, followed by 10 or 11 digits"
4242

4343

4444
class ExpectEstateRefNoColumnValuesToMatchRegex(gxe.ExpectColumnValuesToMatchRegex):
4545
column: str = "estate_reference_number"
46-
regex: str = r"^[0-9]\d+$"
47-
description: str = "Expect Estate Reference Number to match regex ^[0-9]\d+$ (numerical)"
46+
regex: str = "^\d+$"
47+
description: str = "Expect Estate Reference Number to match regex ^\d+$ (numerical)"
4848

4949

5050
class ExpectTenureValuesToBeInSet(gxe.ExpectColumnValuesToBeInSet):

scripts/jobs/housing/housing_homeowner_record_sheet_gx_suite.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ class ExpectPropNoColumnValuesToNotBeNull(gxe.ExpectColumnValuesToNotBeNull):
2424

2525
class ExpectPropNoNoColumnValuesToMatchRegex(gxe.ExpectColumnValuesToMatchRegex):
2626
column: str = "property_no"
27-
regex: str = r"^[0-9]\d+$"
28-
description: str = "Expect Property Number Number to match regex ^[0-9]\d+$ (numerical)"
27+
regex: str = r"^\d+$"
28+
description: str = "Expect Property Number Number to match regex ^\d+$ (numerical)"
2929

3030

3131
class ExpectPaymentRefNoColumnValuesToMatchRegex(gxe.ExpectColumnValuesToMatchRegex):
3232
column: str = "payment_ref"
33-
regex: str = r"^[0-9]\d+$"
34-
description: str = "Expect Payment Reference Number to match regex ^[0-9]\d+$ (numerical)"
33+
regex: str = r"^\d+$"
34+
description: str = "Expect Payment Reference Number to match regex ^\d+$ (numerical)"
3535

3636

3737
class ExpectTenureTypeColumnValuesToBeInSet(gxe.ExpectColumnValuesToBeInSet):

0 commit comments

Comments
 (0)