def all_actions(self, providers): actions = [] for provider in providers: preprint = PreprintFactory(provider=provider, project=ProjectFactory(is_public=True)) for _ in range(5): actions.append(ReviewActionFactory(target=preprint)) return actions
def actions(self, preprint): return [ReviewActionFactory(target=preprint) for _ in range(5)]