Skip to content

Commit

Permalink
follow codestyle in other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandede committed Apr 8, 2024
1 parent bf7a134 commit 9e8f38d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/providers/test_currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ def setup_class(cls):
cls.currencies = cls.provider.currencies
cls.currency_codes, cls.currency_names = tuple(zip(*cls.currencies))

cls.pricetag_pattern = re.compile(r"\d{1,3}(?:\s\d{3})*,\d{2}\sр\.")

def test_currency(self, faker, num_samples):
for _ in range(num_samples):
cur = faker.currency()
Expand All @@ -133,7 +135,7 @@ def test_pricetag(self, faker, num_samples):
for _ in range(num_samples):
pricetag = faker.pricetag()
assert isinstance(pricetag, str)
assert re.match(r"\d{1,3}(?:\s\d{3})*,\d{2}\sр\.", pricetag)
assert self.pricetag_pattern.fullmatch(pricetag)


class TestCsCz:
Expand Down

0 comments on commit 9e8f38d

Please sign in to comment.