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 d09cfa8d3b5 Refactor Teradata provider tests to remove legacy unittest 
imports (#68190)
d09cfa8d3b5 is described below

commit d09cfa8d3b5bf69cc75167f5fa24c9eb77d08666
Author: Biplov Singh <[email protected]>
AuthorDate: Mon Jun 22 12:25:31 2026 +0530

    Refactor Teradata provider tests to remove legacy unittest imports (#68190)
---
 providers/teradata/tests/unit/teradata/operators/test_bteq.py        | 5 -----
 providers/teradata/tests/unit/teradata/utils/test_bteq_util.py       | 5 -----
 .../teradata/tests/unit/teradata/utils/test_encryption_utils.py      | 5 -----
 3 files changed, 15 deletions(-)

diff --git a/providers/teradata/tests/unit/teradata/operators/test_bteq.py 
b/providers/teradata/tests/unit/teradata/operators/test_bteq.py
index f943ae09c08..a099576960f 100644
--- a/providers/teradata/tests/unit/teradata/operators/test_bteq.py
+++ b/providers/teradata/tests/unit/teradata/operators/test_bteq.py
@@ -18,7 +18,6 @@ from __future__ import annotations
 
 import logging
 import tempfile
-import unittest
 from unittest import mock
 
 import pytest
@@ -288,7 +287,3 @@ class TestBteqOperator:
         )
         result = op.execute({})
         assert result == 42  # still returns, but caller can fail on RC if 
desired
-
-
-if __name__ == "__main__":
-    unittest.main()
diff --git a/providers/teradata/tests/unit/teradata/utils/test_bteq_util.py 
b/providers/teradata/tests/unit/teradata/utils/test_bteq_util.py
index c8a0095f4af..0f705c9cf8f 100644
--- a/providers/teradata/tests/unit/teradata/utils/test_bteq_util.py
+++ b/providers/teradata/tests/unit/teradata/utils/test_bteq_util.py
@@ -18,7 +18,6 @@ from __future__ import annotations
 
 import os
 import stat
-import unittest
 from unittest.mock import MagicMock, call, patch
 
 import pytest
@@ -348,7 +347,3 @@ class TestBteqUtils:
         ssh_client = MagicMock()
         result = is_valid_remote_bteq_script_file(ssh_client, None)
         assert result is False
-
-
-if __name__ == "__main__":
-    unittest.main()
diff --git 
a/providers/teradata/tests/unit/teradata/utils/test_encryption_utils.py 
b/providers/teradata/tests/unit/teradata/utils/test_encryption_utils.py
index ba688182ae6..fdf1c8bc21b 100644
--- a/providers/teradata/tests/unit/teradata/utils/test_encryption_utils.py
+++ b/providers/teradata/tests/unit/teradata/utils/test_encryption_utils.py
@@ -17,7 +17,6 @@
 from __future__ import annotations
 
 import string
-import unittest
 from unittest.mock import MagicMock, patch
 
 from airflow.providers.teradata.utils.encryption_utils import (
@@ -102,7 +101,3 @@ class TestEncryptionUtils:
         assert exit_status == 0
         assert output == "decrypted output"
         assert err == ""
-
-
-if __name__ == "__main__":
-    unittest.main()

Reply via email to