<gh_stars>1-10
from orator.orm import Factory
from app.User import User
from app.Country import Country

from random import randrange
factory = Factory()


def users_factory(faker):
    return {
        'name': faker.name(),
        'email': faker.email(),
        'password': <PASSWORD>',  # == 'secret'
    }


def countries_factory(faker):
    return {
        'name': faker.country(),
        'case_number': randrange(1, 100),
        'case_death': randrange(1, 100),
        'case_recovered': randrange(1, 100)
    }


factory.register(User, users_factory)
factory.register(Country, countries_factory)

from orator.orm import Factory
from app.User import User
from app.Country import Country

from random import randrange
factory = Factory()


def users_factory(faker):
    return {
        'name': faker.name(),
        'email': faker.email(),
        'password': <PASSWORD>',  # == 'secret'
    }


def countries_factory(faker):
    return {
        'name': faker.country(),
        'case_number': randrange(1, 100),
        'case_death': randrange(1, 100),
        'case_recovered': randrange(1, 100)
    }


factory.register(User, users_factory)
factory.register(Country, countries_factory)
# == 'secret'