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 31, 2025
1 parent e86f27f commit dd466da
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 @@ -896,7 +896,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 @@ -925,7 +925,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 dd466da

Please sign in to comment.