Skip to content

Commit

Permalink
Add et-EE automotive provider (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerogonal committed May 2, 2022
1 parent bdc3dc5 commit 5807c28
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions faker/providers/automotive/et_EE/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from .. import Provider as AutomotiveProvider


class Provider(AutomotiveProvider):
"""Implement automotive provider for ``et_EE`` locale.
Source:
- https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Estonia
"""

license_formats = ("### ???",)
6 changes: 6 additions & 0 deletions tests/providers/test_automotive.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,9 @@ class TestLtLt(_SimpleAutomotiveTestMixin):
"""Test lt_LT automotive provider methods"""

license_plate_pattern: Pattern = re.compile(r"[A-Z]{3} \d{3}")


class TestEtEe(_SimpleAutomotiveTestMixin):
"""Test et_EE automotive provider methods"""

license_plate_pattern: Pattern = re.compile(r"\d{3} [A-Z]{3}")

0 comments on commit 5807c28

Please sign in to comment.