You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/tests/README.md
+31-38Lines changed: 31 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This directory contains Python integration tests that run as part of the GitHub
13
13
Create a new Python file in this directory (`.github/workflows/tests/`). The filename **must** start with `test_` (e.g., `test_auth.py`) to be automatically discovered by the test runner.
14
14
15
15
2.**Implement Test Logic**:
16
-
Use the `unittest` framework to structure your tests. You can include multiple test methods in a single class, and multiple classes in a single file. Each method starting with `test_` will be executed as a separate test case.
16
+
Use `pytest`to structure your tests. Test functions must start with `test_`; test classes must start with `Test` and must not define an `__init__` method. Existing `unittest.TestCase` tests are also supported by pytest.
17
17
18
18
```python
19
19
# Licensed to the Apache Software Foundation (ASF) under one or more
@@ -31,64 +31,57 @@ This directory contains Python integration tests that run as part of the GitHub
31
31
# See the License for the specific language governing permissions and
32
32
# limitations under the License.
33
33
34
-
import unittest
35
-
import requests
36
34
import os
35
+
36
+
import requests
37
37
import urllib3
38
38
39
39
# Suppress InsecureRequestWarning since we use verify=False for self-signed certs
0 commit comments