This is an automated email from the ASF dual-hosted git repository.
taragolis 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 4e9aabb51b Metric name matching - slightly clearer unit test (#37153)
4e9aabb51b is described below
commit 4e9aabb51bdcd8540ff76142c7aae34a6c81e428
Author: D. Ferruzzi <[email protected]>
AuthorDate: Sat Feb 3 13:51:53 2024 -0800
Metric name matching - slightly clearer unit test (#37153)
---
tests/core/test_stats.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tests/core/test_stats.py b/tests/core/test_stats.py
index 31e4559600..ddd69ca32a 100644
--- a/tests/core/test_stats.py
+++ b/tests/core/test_stats.py
@@ -312,9 +312,11 @@ class TestStatsAllowAndBlockLists:
@pytest.mark.parametrize(
"match_pattern, expect_incr",
[
- ("^stat", True),
- ("a.{4}o", True),
- ("^banana", False),
+ ("^stat", True), # Match: Regex Startswith
+ ("a.{4}o", True), # Match: RegEx Pattern
+ ("foo", True), # Match: Any substring
+ ("stat", True), # Match: Substring Startswith
+ ("^banana", False), # No match
],
)
def test_regex_matches(self, match_pattern, expect_incr):