Skip to content

Commit

Permalink
DESENG-676: Linting - flake 8
Browse files Browse the repository at this point in the history
  • Loading branch information
NatSquared committed Aug 23, 2024
1 parent 17b480a commit 9e7286d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion met-api/src/met_api/services/engagement_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _create_engagement_model(engagement_data: dict) -> EngagementModel:
def create_default_engagement_content(eng_id):
"""Create default engagement content for the given engagement ID."""
default_engagement_content = {
'title': "Summary",
'title': 'Summary',
'engagement_id': eng_id
}
try:
Expand Down
2 changes: 1 addition & 1 deletion met-api/src/met_api/utils/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ class UserStatus(IntEnum):
"""User status."""

ACTIVE = 1
INACTIVE = 2
INACTIVE = 2
1 change: 1 addition & 0 deletions met-api/tests/unit/api/test_engagement_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def test_create_engagement_content_sort(client, jwt, session,
assert engagement_contents[1].get('title') == 'Summary'
assert engagement_contents[0].get('title') == 'Custom'


def test_create_engagement_content_sort_invalid(client, jwt, session,
setup_admin_user_and_claims): # pylint:disable=unused-argument
"""Assert that a engagement content sort error handling is done."""
Expand Down
12 changes: 6 additions & 6 deletions met-api/tests/utilities/factory_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,17 +882,17 @@ class TestEngagementContentInfo(dict, Enum):
'title': 'Summary',
'is_internal': False,
'text_content': fake.text(max_nb_chars=20),
'json_content': "{\"blocks\":[{\"key\":\"fclgj\",\"text\":\"Rich Content Sample\",\
\"type\":\"unstyled\",\"depth\":0,\
\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}"
'json_content': '{"blocks":[{"key":"fclgj","text":"Rich Content Sample",\
"type":"unstyled","depth":0,\
"inlineStyleRanges":[],"entityRanges":[],"data":{}}],"entityMap":{}}'
}
content2 = {
'title': 'Custom',
'is_internal': False,
'text_content': fake.text(max_nb_chars=20),
'json_content': "{\"blocks\":[{\"key\":\"fclgj\",\"text\":\"Rich Content Sample\",\
\"type\":\"unstyled\",\"depth\":0,\
\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}"
'json_content': '{"blocks":[{"key":"fclgj","text":"Rich Content Sample",\
"type":"unstyled","depth":0,\
"inlineStyleRanges":[],"entityRanges":[],"data":{}}],"entityMap":{}}'
}


Expand Down

0 comments on commit 9e7286d

Please sign in to comment.