Skip to main content

Fake data for testing LibreLingo-related packages

Project description

librelingo_fakes

librelingo_fakes.fakes

This package contains fake data for testing LibreLingo-related packages.

The fake data is returned using the types from librelingo-types.

Usage

from librelingo_fakes import fakes

fakes.course1  # This is a Course() object
fakes.course2  # This is another Course() object
fakes.courseEmpty  # This is an empty course

For the full list of fakes, use the autocomplete or check out the this file.

Customizing fakes

You can use fakes.customize to change some attributes on a fake object. If you want to change the modules on fakes.course1, you'd do it like this:

fake_course = fakes.customize(fakes.course1, modules=[
    fake_module_1, fake_module_2
])

number

number(max_value=10000)

Returns a 'random' non-negative integer. It is NOT cryptographically-secure.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

librelingo_fakes-3.2.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

librelingo_fakes-3.2.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file librelingo_fakes-3.2.1.tar.gz.

File metadata

  • Download URL: librelingo_fakes-3.2.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.15.1 CPython/3.11.8 Linux/6.8.7-zen1-1-zen

File hashes

Hashes for librelingo_fakes-3.2.1.tar.gz
Algorithm Hash digest
SHA256 c489bd558036fcf1b8358b5d671dba62681617551bc45ca4deada70132864e61
MD5 ef6b103259d3d481bcb89d8e2cb294c6
BLAKE2b-256 dc6e79b8070c3085df5f14f5bd8cd003f038912f62a0124ac99dcef69c3267cd

See more details on using hashes here.

File details

Details for the file librelingo_fakes-3.2.1-py3-none-any.whl.

File metadata

  • Download URL: librelingo_fakes-3.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.15.1 CPython/3.11.8 Linux/6.8.7-zen1-1-zen

File hashes

Hashes for librelingo_fakes-3.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba7586719c5c1a5ada39d5fb0d4b187bb62ab03ae8b6b3dda5fcbbd78353546
MD5 6230fba335afd6333c3c815c4fcc2ae8
BLAKE2b-256 c986fb2cdf235913aa3a5fe79e3182044487e670156ac51b5096fff4baaca252

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page