From 4c9578ec59fd81b6f618676995444b55f5ab355a Mon Sep 17 00:00:00 2001 From: Rebecca Graber Date: Wed, 4 Oct 2023 13:21:11 -0400 Subject: [PATCH] fixup!: versioning --- CHANGELOG.rst | 6 ++++-- openedx_events/__init__.py | 2 +- openedx_events/event_bus/tests/test_loader.py | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b833062d..bb9685d8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -13,9 +13,11 @@ Change Log Unreleased ---------- -Changed -~~~~~~~ + +[9.0.0] - 2023-10-04 +-------------------- * Re-licensed this repository from AGPL 3.0 to Apache 2.0 +* **Breaking change**: Restructured EVENT_BUS_PRODUCER_CONFIG [8.6.0] - 2023-08-28 -------------------- diff --git a/openedx_events/__init__.py b/openedx_events/__init__.py index 3feb7fdf..977cc1ca 100644 --- a/openedx_events/__init__.py +++ b/openedx_events/__init__.py @@ -5,4 +5,4 @@ more information about the project. """ -__version__ = "8.6.0" +__version__ = "9.0.0" diff --git a/openedx_events/event_bus/tests/test_loader.py b/openedx_events/event_bus/tests/test_loader.py index 2ce2a874..7d279df4 100644 --- a/openedx_events/event_bus/tests/test_loader.py +++ b/openedx_events/event_bus/tests/test_loader.py @@ -164,3 +164,17 @@ def test_merge_configs(self): 'topic_e': {'event_key_field': 'field', 'enabled': True}, } }) + + def test_merge_configs_with_empty(self): + dict_a = { + 'event_type_0': { + 'topic_a': {'event_key_field': 'field', 'enabled': True}, + 'topic_b': {'event_key_field': 'field', 'enabled': True} + }, + 'event_type_1': { + 'topic_c': {'event_key_field': 'field', 'enabled': True}, + } + } + dict_b = {} + result = merge_publisher_configs(dict_a, dict_b) + self.assertDictEqual(result, dict_a)