From 0ce00b38e0d6631d68c80c2eba23e6d3ce589a98 Mon Sep 17 00:00:00 2001 From: Lyndon Fan Date: Sat, 9 Nov 2024 12:22:41 +0000 Subject: [PATCH] chore: add leading underscore --- dev/breeze/tests/test_run_test_args.py | 2 +- tests/always/test_pandas.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/breeze/tests/test_run_test_args.py b/dev/breeze/tests/test_run_test_args.py index 58e341e4dfa12..a2a2b4f4cf471 100644 --- a/dev/breeze/tests/test_run_test_args.py +++ b/dev/breeze/tests/test_run_test_args.py @@ -47,7 +47,7 @@ def mock_get_excluded_provider_folders(): @pytest.fixture(autouse=True) -def mock_sleep(): +def _mock_sleep(): """_run_test does a 10-second sleep in CI, so we mock the sleep function to save CI test time.""" with patch("airflow_breeze.commands.testing_commands.sleep"): yield diff --git a/tests/always/test_pandas.py b/tests/always/test_pandas.py index 8b297d30c8db3..d78f840b82bd3 100644 --- a/tests/always/test_pandas.py +++ b/tests/always/test_pandas.py @@ -28,7 +28,7 @@ @pytest.mark.backend("postgres", "mysql") class TestPandasSQLAlchemyCompatibility: @pytest.fixture(autouse=True) - def setup_test_cases(self): + def _setup_test_cases(self): self.temp_table = "test_to_pandas" uri = conf.get_mandatory_value("database", "sql_alchemy_conn") self.engine = create_engine(uri) @@ -45,7 +45,7 @@ def test_write_read_to_db(self): class TestPandasSQLAlchemyCompatibilitySQLite: @pytest.fixture(autouse=True) - def setup_test_cases(self): + def _setup_test_cases(self): self.temp_table = "test_to_pandas" self.engine = create_engine("sqlite:///:memory:") yield