Skip to content

Commit

Permalink
Update factory_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VineetBala-AOT authored Mar 8, 2024
1 parent e3bfe52 commit f036f88
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions met-api/tests/utilities/factory_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,9 @@
from tests.utilities.factory_scenarios import (
TestCommentInfo, TestEngagementInfo, TestEngagementMetadataInfo, TestEngagementMetadataTaxonInfo,
TestEngagementSlugInfo, TestFeedbackInfo, TestJwtClaims, TestLanguageInfo, TestParticipantInfo, TestPollAnswerInfo,
TestPollResponseInfo, TestReportSettingInfo, TestSubmissionInfo, TestSurveyInfo, TestTenantInfo, TestTimelineInfo,
TestUserInfo, TestWidgetDocumentInfo, TestWidgetInfo, TestWidgetItemInfo, TestWidgetMap, TestWidgetPollInfo,
TestWidgetTranslationInfo, TestWidgetVideo)
TestPollResponseInfo, TestReportSettingInfo, TestSubmissionInfo, TestSurveyInfo, TestSurveyTranslationInfo,
TestTenantInfo, TestTimelineInfo, TestUserInfo, TestWidgetDocumentInfo, TestWidgetInfo, TestWidgetItemInfo,
TestWidgetMap, TestWidgetPollInfo, TestWidgetVideo)
TestWidgetMap, TestWidgetPollInfo, TestWidgetTranslationInfo, TestWidgetVideo)


fake = Faker()
Expand Down Expand Up @@ -572,8 +569,8 @@ def factory_language_model(lang_info: dict = TestLanguageInfo.language1):
code=lang_info.get('code'),
right_to_left=lang_info.get('right_to_left'),
)
language.save()
return language
language_model.save()
return language_model


def factory_widget_translation_model(widget_translation: dict = TestWidgetTranslationInfo.widgettranslation1):
Expand All @@ -586,8 +583,6 @@ def factory_widget_translation_model(widget_translation: dict = TestWidgetTransl
)
widget_translation.save()
return widget_translation
language_model.save()
return language_model


def factory_survey_translation_model(
Expand Down

0 comments on commit f036f88

Please sign in to comment.