Skip to content

Commit

Permalink
Added new style pt_PT automotive plates (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella authored Oct 1, 2020
2 parents f3cf845 + e97fd5f commit 2493870
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion faker/providers/automotive/pt_PT/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ class Provider(AutomotiveProvider):
Sources:
- https://pt.wikipedia.org/wiki/Matr%C3%ADculas_de_autom%C3%B3veis_em_Portugal
- https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Portugal
"""

license_formats = (
'##-##-??',
'##-??-##',
'??-##-##',
# New format since March 2020
'??-##-??',
)
3 changes: 2 additions & 1 deletion tests/providers/test_automotive.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class TestPtPt(_SimpleAutomotiveTestMixin):
license_plate_pattern = re.compile(
r'\d{2}-\d{2}-[A-Z]{2}|'
r'\d{2}-[A-Z]{2}-\d{2}|'
r'[A-Z]{2}-\d{2}-\d{2}',
r'[A-Z]{2}-\d{2}-\d{2}|'
r'[A-Z]{2}-\d{2}-[A-Z]{2}',
)


Expand Down

0 comments on commit 2493870

Please sign in to comment.