Skip to content

temp: Testing new openedx-events - #344

Draft
bmtcril wants to merge 1 commit into
mainfrom
bmtcril/test_type_hinted_openedxevents
Draft

bmtcril wants to merge 1 commit into
mainfrom
bmtcril/test_type_hinted_openedxevents

Conversation

@bmtcril

@bmtcril bmtcril commented Apr 21, 2026 •

Copy link
Copy Markdown

Requirements upgrades haven't been working in months, so this also has fixes for that just to get things running again, but the real change is just using the new openedx-events.

Merge checklist:
Check off if complete or not applicable:

  • Version bumped
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Commits are squashed
  • Noted any: Concerns, dependencies, deadlines, tickets, testing instructions

from unittest import TestCase
from unittest.mock import ANY, Mock, call, patch

import attr

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for the test fix below

pass


# Copied from openedx_events.event_bus.avro.tests.test_utilities

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These used to be imported, but at some point openedx-events stopped bundling the tests

topic_record_subject_name_strategy # pylint: disable=protected-access,comparison-with-callable
assert value_ser._subject_name_func ==\
topic_record_subject_name_strategy # pylint: disable=protected-access,comparison-with-callable
# pylint: disable=protected-access,comparison-with-callable

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the actual change in the rest of this file, pylint complained about line length and ruff made a million other irrelevant changes.

Comment thread Makefile

upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade
upgrade: ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in
pip install -qr requirements/pip.txt

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to fix the actual errors blocking make upgrade so I could run that.

@bmtcril
bmtcril force-pushed the bmtcril/test_type_hinted_openedxevents branch from 385ffdd to c55ac2a Compare July 15, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant