fake

A basic instance of Faker to generate test data.

Read the Official Faker Docs for more info! There's a lot you can do with it.

Syntax

py.fake.<object>()

This is a command and a fixture. More details in his doc: Fixtures > fake

Examples

# Generate fake names
py.fake.name()
py.fake.first_name()
py.fake.last_name()

# Generate a bunch of other things!
py.fake.email()
py.fake.address()
py.fake.ssn()

Last updated