Skip to content

Commit

Permalink
Fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ratheesh-aot committed Jan 23, 2024
1 parent 80b8fd4 commit 17d2dc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions met-api/tests/utilities/factory_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ class TestSubscribeInfo(Enum):
}
]
}

subscribe_info_2 = {
'widget_id': 1,
'type': 'SIGN_UP',
Expand All @@ -696,6 +696,7 @@ class TestSubscribeInfo(Enum):
]
}


class TestCACForm(dict, Enum):
"""Test scenarios of cac form."""

Expand Down Expand Up @@ -750,7 +751,8 @@ class TestTimelineInfo(dict, Enum):
'position': 1,
'status': TimelineEventStatus.Pending.value
}



class TestWidgetPollInfo(dict, Enum):
"""Test scenarios of widget polls."""

Expand Down Expand Up @@ -807,4 +809,4 @@ class TestPollResponseInfo(dict, Enum):
'selected_answer_id': 2, # should be replaced with an actual answer ID in tests
'poll_id': 1, # should be replaced with an actual poll ID in tests
'widget_id': 1, # should be replaced with an actual widget ID in tests
}
}
10 changes: 5 additions & 5 deletions met-api/tests/utilities/factory_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@
from met_api.models.timeline_event import TimelineEvent as TimelineEventModel
from met_api.models.widget import Widget as WidgetModal
from met_api.models.widget_documents import WidgetDocuments as WidgetDocumentModel
from met_api.models.widget_item import WidgetItem as WidgetItemModal
from met_api.models.widget_map import WidgetMap as WidgetMapModel
from met_api.models.widget_poll import Poll as WidgetPollModel
from met_api.models.widget_timeline import WidgetTimeline as WidgetTimelineModel
from met_api.models.widget_video import WidgetVideo as WidgetVideoModel
from met_api.models.widget_item import WidgetItem as WidgetItemModal
from met_api.models.widget_poll import Poll as WidgetPollModel
from met_api.utils.constants import TENANT_ID_HEADER
from met_api.utils.enums import MembershipStatus
from tests.utilities.factory_scenarios import (
TestCommentInfo, TestEngagementInfo, TestEngagementSlugInfo, TestFeedbackInfo, TestParticipantInfo,
TestPollAnswerInfo, TestPollResponseInfo, TestReportSettingInfo, TestSubmissionInfo, TestSurveyInfo, TestTenantInfo,
TestUserInfo, TestWidgetDocumentInfo, TestWidgetInfo, TestWidgetItemInfo, TestWidgetPollInfo,
TestReportSettingInfo, TestSubmissionInfo, TestSurveyInfo, TestTenantInfo, TestTimelineInfo, TestUserInfo,
TestWidgetDocumentInfo, TestWidgetInfo, TestWidgetItemInfo, TestWidgetMap, TestWidgetVideo)
TestTimelineInfo, TestUserInfo, TestWidgetDocumentInfo, TestWidgetInfo, TestWidgetItemInfo, TestWidgetMap,
TestWidgetPollInfo, TestWidgetVideo)


CONFIG = get_named_config('testing')
fake = Faker()
Expand Down

0 comments on commit 17d2dc8

Please sign in to comment.