This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new c97779b6b4 Add `pytest.mark.filterwarnings` to date_range() unit test
(#28210)
c97779b6b4 is described below
commit c97779b6b466e93bbde9415a2c08885a770af35f
Author: Taewan Kim <[email protected]>
AuthorDate: Thu Dec 8 21:39:57 2022 +0900
Add `pytest.mark.filterwarnings` to date_range() unit test (#28210)
It would be nice to ignore the deprecation warnings from the date_range()
unit test since airflow.utils.dates.date_range() is deprecated.
---
tests/utils/test_dates.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/utils/test_dates.py b/tests/utils/test_dates.py
index ecafa306e8..6013e6b580 100644
--- a/tests/utils/test_dates.py
+++ b/tests/utils/test_dates.py
@@ -105,6 +105,7 @@ class TestDates:
assert arr4 == approx([2.3147, 1.1574], rel=1e-3)
[email protected]("ignore:`airflow.utils.dates.date_range:DeprecationWarning")
class TestUtilsDatesDateRange:
def test_no_delta(self):
assert dates.date_range(datetime(2016, 1, 1), datetime(2016, 1, 3)) ==
[]