From 5807c28173b9d48d1194bd38eebd9a523f4df7b9 Mon Sep 17 00:00:00 2001 From: zerogonal Date: Mon, 2 May 2022 09:40:54 -0600 Subject: [PATCH] Add `et-EE` automotive provider (#1641) --- faker/providers/automotive/et_EE/__init__.py | 12 ++++++++++++ tests/providers/test_automotive.py | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 faker/providers/automotive/et_EE/__init__.py diff --git a/faker/providers/automotive/et_EE/__init__.py b/faker/providers/automotive/et_EE/__init__.py new file mode 100644 index 0000000000..dab5516476 --- /dev/null +++ b/faker/providers/automotive/et_EE/__init__.py @@ -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 = ("### ???",) diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py index b39febc183..2c9c3373e7 100644 --- a/tests/providers/test_automotive.py +++ b/tests/providers/test_automotive.py @@ -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}")