Skip to content

Commit

Permalink
refactor: address quality issues from latest commits
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Dec 13, 2024
1 parent a701f78 commit e71efcc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions openedx_events/analytics/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

import attr

from typing import Dict


@attr.s(frozen=True)
class TrackingLogData:
Expand Down
2 changes: 0 additions & 2 deletions openedx_events/event_bus/avro/custom_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
from openedx_events.event_bus.avro.types import PYTHON_TYPE_TO_AVRO_MAPPING


import json

class BaseCustomTypeAvroSerializer(ABC):
"""
Used by openedx_events.avro_utilities class to serialize/deserialize custom types.
Expand Down
4 changes: 3 additions & 1 deletion openedx_events/event_bus/avro/tests/test_avro.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def generate_test_event_data_for_data_type(data_type): # pragma: no cover
"block-v1:edx+DemoX+Demo_course+type@video+block@UaEBjyMjcLW65gaTXggB93WmvoxGAJa0JeHRrDThk",
)},
dict[str, LibraryLocatorV2]: {'key': LibraryLocatorV2.from_string('lib:MITx:reallyhardproblems')},
dict[str, LibraryUsageLocatorV2]: {'key': LibraryUsageLocatorV2.from_string('lb:MITx:reallyhardproblems:problem:problem1')},
dict[str, LibraryUsageLocatorV2]: {
'key': LibraryUsageLocatorV2.from_string('lb:MITx:reallyhardproblems:problem:problem1'),
},
dict[str, List[int]]: {'key': [1, 2, 3]},
dict[str, List[str]]: {'key': ["hi", "there"]},
dict[str, dict[str, str]]: {'key': {'key': 'value'}},
Expand Down
3 changes: 0 additions & 3 deletions openedx_events/tooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
"org.openedx.content_authoring.course.certificate_config.changed.v1",
"org.openedx.content_authoring.course.certificate_config.deleted.v1",
"org.openedx.learning.user.notification.requested.v1",
#"org.openedx.learning.thread.created.v1",
#"org.openedx.learning.response.created.v1",
#"org.openedx.learning.comment.created.v1",
"org.openedx.learning.course.notification.requested.v1",
"org.openedx.learning.ora.submission.created.v1",
]
Expand Down

0 comments on commit e71efcc

Please sign in to comment.