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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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