def get_fake_model(fields=None, model_base=PostgresModel, meta_options={}):
model = define_fake_model(fields, model_base, meta_options)<EOL>class TestProject:<EOL><INDENT>def clone(self, *_args, **_kwargs):<EOL><INDENT>return self<EOL><DEDENT>@property<EOL>def apps(self):<EOL><INDENT>return self<EOL><DEDENT><DEDENT>class TestMigration(migrations.Migration):<EOL><INDENT>operations = [HStoreExtension()]<EOL><DEDENT>with connection.schema_editor() as schema_editor:<EOL><INDENT>migration_executor = MigrationExecutor(schema_editor.connection)<EOL>migration_executor.apply_migration(<EOL>TestProject(), TestMigration('<STR_LIT>', '<STR_LIT>'))<EOL>schema_editor.create_model(model)<EOL><DEDENT>return model<EOL>
Creates a fake model to use during unit tests.