This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-5-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 458c41fda6c065496dbc096353dc32c2ef9ee98b Author: Vedant Lodha <[email protected]> AuthorDate: Mon Feb 20 21:50:46 2023 +0530 Migrate breeze unit tests to pytest. (#29639) This change removes unittest.Testcase dependency for breeze tests which was just being used for an assert statement. fixes #29305 (cherry picked from commit d721701e14debe7e8a411680aba821ed800ccb36) --- dev/breeze/tests/test_run_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev/breeze/tests/test_run_utils.py b/dev/breeze/tests/test_run_utils.py index 78187f974a..2ff2fb8810 100644 --- a/dev/breeze/tests/test_run_utils.py +++ b/dev/breeze/tests/test_run_utils.py @@ -19,7 +19,6 @@ from __future__ import annotations import os import stat from pathlib import Path -from unittest import TestCase from airflow_breeze.utils.run_utils import ( change_directory_permission, @@ -51,4 +50,4 @@ def test_filter_out_none(): dict_input_with_none = {"sample": None, "sample1": "One", "sample2": "Two", "samplen": None} expected_dict_output = {"sample1": "One", "sample2": "Two"} output_dict = filter_out_none(**dict_input_with_none) - TestCase().assertDictEqual(output_dict, expected_dict_output) + assert output_dict == expected_dict_output
