Skip to content

Commit

Permalink
Fix config mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jedcunningham committed Jan 29, 2025
1 parent 35c951f commit 9738559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/dag_processing/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ def test_non_versioned_bundle_get_version_not_called(self):
mybundle.refresh_interval = 0
mybundle.supports_versioning = False

with conf_vars({("dag_bundles", "config_list"): json.dumps(config)}):
with conf_vars({("dag_processor", "dag_bundle_config_list"): json.dumps(config)}):
DagBundlesManager().sync_bundles_to_db()
with mock.patch(
"airflow.dag_processing.bundles.manager.DagBundlesManager"
Expand Down Expand Up @@ -865,7 +865,7 @@ def test_versioned_bundle_get_version_called_once(self):
mybundle.supports_versioning = True
mybundle.get_current_version.return_value = "123"

with conf_vars({("dag_bundles", "config_list"): json.dumps(config)}):
with conf_vars({("dag_processor", "dag_bundle_config_list"): json.dumps(config)}):
DagBundlesManager().sync_bundles_to_db()
with mock.patch(
"airflow.dag_processing.bundles.manager.DagBundlesManager"
Expand Down

0 comments on commit 9738559

Please sign in to comment.