def institution_with_id_and_datasets_and_removed_datasets(
        institution_id, num, rm_num):
    org = OrganizationFactory.create(
        id=institution_id,
        title='Institution {} with datasets.'.format(institution_id))
    DatasetFactory.create_batch(num, organization=org)
    DatasetFactory.create_batch(rm_num, organization=org, is_removed=True)
    return org
Example #2
0
def showcase_with_id_and_datasets(showcase_id, num):
    showcase = ShowcaseFactory.create(
        id=showcase_id, title='showcase {} with datasets'.format(showcase_id))
    datasets = DatasetFactory.create_batch(num, showcases=(showcase, ))
    for dataset in datasets:
        ResourceFactory.create_batch(3, dataset=dataset)
    return showcase
Example #3
0
def application_with_id_and_datasets(application_id, num):
    application = ApplicationFactory.create(
        id=application_id,
        title='application {} with datasets'.format(application_id))
    datasets = DatasetFactory.create_batch(num, applications=(application, ))
    for dataset in datasets:
        ResourceFactory.create_batch(3, dataset=dataset)
    return application
Example #4
0
def showcase_with_datasets():
    showcase = ShowcaseFactory.create()
    DatasetFactory.create_batch(2, showcase=showcase)
    return showcase
Example #5
0
def application_with_datasets():
    org = ApplicationFactory.create()
    DatasetFactory.create_batch(2, application=org)
    return org
Example #6
0
def x_datasets(num):
    return DatasetFactory.create_batch(num)
Example #7
0
def datasets():
    return DatasetFactory.create_batch(3)
Example #8
0
def article_with_id_with_datasets(article_id, num):
    _article = ArticleFactory.create(
        id=article_id, title='Article {} with datasets'.format(article_id))
    DatasetFactory.create_batch(num, articles=(_article, ))
    return _article
Example #9
0
def article_with_datasets():
    _article = ArticleFactory.create(title='Article with datasets')
    DatasetFactory.create_batch(2, articles=(_article, ))
    return _article
def institution_with_id_and_datasets(institution_id, num):
    org = OrganizationFactory.create(
        id=institution_id,
        title='Institution {} with datasets'.format(institution_id))
    DatasetFactory.create_batch(num, organization=org)
    return org
def institution_with_datasets():
    org = OrganizationFactory.create()
    DatasetFactory.create_batch(2, organization=org)
    return org