def save_n_data_requests_with_category(user, n, category): for i in range(n): data_request = DataRequest(creator=user) data_request.name = 'test_data_request_name_' + str(i) data_request.is_active = True data_request.category = category data_request.save()
def save_n_data_requests_with_tag(user, n, tag): for i in range(n): data_request = DataRequest(creator=user) data_request.name = 'test_data_request_name_' + str(i) data_request.is_active = True data_request.save() Tagging.objects.add_tags_and_return_added_tag_names(tag, data_request, user)
def save_n_data_requests(user, n): for i in range(n): data_request = DataRequest(creator=user) data_request.name = 'test_data_request_name_' + str(i) data_request.is_active = True data_request.save()