Skip to content

Commit

Permalink
💄 Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Sep 19, 2024
1 parent e4914bf commit 9c8a9d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions faker/proxy.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is auto-generated by generate_stubs.py.
# Please do not edit this file directly.

import datetime

from collections import OrderedDict
Expand Down
6 changes: 3 additions & 3 deletions tests/providers/test_python.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from collections import Counter
import decimal
import sys
import unittest
import warnings

from collections import Counter
from typing import Iterable, Optional, Type, Union
from unittest.mock import patch

Expand Down Expand Up @@ -520,15 +520,15 @@ def test_min_value_and_max_value_negative_return_evenly_distributed_values(self)
max_value = -50
for _ in range(1000):
result.append(self.fake.pydecimal(min_value=min_value, max_value=max_value, right_digits=0))
self.assertGreater(len(Counter(result)), max_value-min_value)
self.assertGreater(len(Counter(result)), max_value - min_value)

def test_min_value_and_max_value_positive_return_evenly_distributed_values(self):
result = []
min_value = 50
max_value = 60
for _ in range(1000):
result.append(self.fake.pydecimal(min_value=min_value, max_value=max_value, right_digits=0))
self.assertGreater(len(Counter(result)), max_value-min_value)
self.assertGreater(len(Counter(result)), max_value - min_value)

def test_min_value_float_returns_correct_digit_number(self):
Faker.seed("6")
Expand Down

0 comments on commit 9c8a9d9

Please sign in to comment.