ilc-provider

Faker provider for ILC data models
Generates fake data for all data models: players, teams, leagues, etc.
When imported the ilc_provider package creates a
Faker instance
and adds itself as a provider. It can then be called
like any other provider:
from ilc_provider import fake
league = fake.league()
See the documentation for the full list of data that can be generated.
Installation
(.venv) $ pip install ilc-provider
Usage
ilc_provider can be used as a Pytest fixture:
# conftest.py
import pytest
from ilc_provider import fake
# Any element of the provider can be accessed
# from this fixture:
# match = ilc_fake.match()
@pytest.fixture(scope="session")
def ilc_fake():
return fake
# A fake league is intensive to set up, so it is
# usually best to make a session-scoped league fixture:
@pytest.fixture(scope="session")
def fake_league(ilc_fake):
return ilc_fake.league()