Skip to content

Commit

Permalink
fix: remove faker
Browse files Browse the repository at this point in the history
  • Loading branch information
vgorkavenko committed Feb 12, 2025
1 parent fc059c5 commit c5bc4a9
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from faker import Faker

from src.constants import FAR_FUTURE_EPOCH
from src.constants import FAR_FUTURE_EPOCH, UINT64_MAX
from src.providers.consensus.types import Validator, ValidatorStatus, ValidatorState
from src.services.bunker_cases.abnormal_cl_rebase import AbnormalClRebase
from src.services.bunker_cases.types import BunkerConfig
Expand All @@ -16,8 +16,6 @@
from tests.factory.no_registry import LidoValidatorFactory
from tests.modules.accounting.bunker.conftest import simple_ref_blockstamp, simple_key, simple_blockstamp

faker = Faker()


def simple_validators(
from_index: int,
Expand Down Expand Up @@ -340,9 +338,9 @@ def test_get_nearest_and_distant_blockstamps(
LidoValidatorFactory.batch(10, balance=32 * 10**9),
# and have the same balance
LidoValidatorFactory.batch(9, balance=32 * 10**9),
faker.pyint(),
faker.pyint(),
faker.pyint(),
UINT64_MAX,
UINT64_MAX,
UINT64_MAX,
# It is exception because new vals count can't be less that previous
ValueError("Validators count diff should be positive or 0. Something went wrong with CL API"),
),
Expand Down

0 comments on commit c5bc4a9

Please sign in to comment.