def load_fixture(apps, schema_editor): if 'test' in sys.argv: fixture = 'bar_membership_data_truncated' else: fixture = 'bar_membership_data' load_migration_fixture(apps, schema_editor, fixture, 'users') # Add tenn user group permissions Group = apps.get_model( "auth", "Group", ) Group.objects.create(name="tenn_work_uploaders", ) # Make users make_new_user( apps, schema_editor, "recap", "*****@*****.**", ["has_recap_upload_access"], ) make_new_user( apps, schema_editor, "recap-email", "*****@*****.**", ["has_recap_upload_access"], )
def load_fixture(apps, schema_editor): # Every time tests are run, the migrations are applied, importing this data. # Because the standard school data has more than 6,000 items, it takes too # long to import, and instead we import a miniature version. if 'test' in sys.argv: fixture = 'school_data_truncated' else: fixture = 'schools_data' load_migration_fixture(apps, schema_editor, fixture, 'people_db')
def load_fixture(apps, schema_editor): # Every time tests are run, the migrations are applied, importing this data. # Because the standard school data has more than 6,000 items, it takes too # long to import, and instead we import a miniature version. if 'test' in sys.argv: fixture = 'school_data_truncated' else: fixture = 'schools_data' load_migration_fixture(apps, schema_editor, fixture, 'people_db')
def load_fixture(apps, schema_editor): load_migration_fixture(apps, schema_editor, fixture, 'search')
def load_fixtures(apps, schema_editor): for fixture in fixtures: load_migration_fixture(apps, schema_editor, fixture, 'search')
def load_fixture(apps, schema_editor): if 'test' in sys.argv: fixture = 'pacer_free_docs_initial_data_truncated' else: fixture = 'pacer_free_docs_initial_data' load_migration_fixture(apps, schema_editor, fixture, 'scrapers')
def load_fixture(apps, schema_editor): if 'test' in sys.argv: fixture = 'court_data_truncated' else: fixture = 'court_data' load_migration_fixture(apps, schema_editor, fixture, 'search')
def load_fixture(apps, schema_editor): load_migration_fixture(apps, schema_editor, fixture, 'search')
def load_fixture(apps, schema_editor): if 'test' in sys.argv: fixture = 'bar_membership_data_truncated' else: fixture = 'bar_membership_data' load_migration_fixture(apps, schema_editor, fixture, 'users')
def load_fixture(apps, schema_editor): if 'test' in sys.argv: fixture = 'bar_membership_data_truncated' else: fixture = 'bar_membership_data' load_migration_fixture(apps, schema_editor, fixture, 'users')
def load_fixture(apps, schema_editor): if 'test' in sys.argv: fixture = 'court_data_truncated' else: fixture = 'court_data' load_migration_fixture(apps, schema_editor, fixture, 'search')
def load_fixture(apps, schema_editor): load_migration_fixture(apps, schema_editor, 'races', 'people_db')
def load_fixtures(apps, schema_editor): # This reloads the court_data_new.json fixture, because it had typos and # other bad values. It then loads the latest fixtures as well. for fixture in fixtures: load_migration_fixture(apps, schema_editor, fixture, 'search')
def load_fixture(apps, schema_editor): load_migration_fixture(apps, schema_editor, fixture, 'scrapers')
def load_fixtures(apps, schema_editor): for fixture in fixtures: load_migration_fixture(apps, schema_editor, fixture, 'search')
def load_fixtures(apps, schema_editor): # This reloads the court_data_new.json fixture, because it had typos and # other bad values. It then loads the latest fixtures as well. for fixture in fixtures: load_migration_fixture(apps, schema_editor, fixture, 'search')