Zheaoli commented on code in PR #3397:
URL:
https://github.com/apache/incubator-opendal/pull/3397#discussion_r1376344756
##########
bindings/python/tests/conftest.py:
##########
@@ -15,9 +15,66 @@
# specific language governing permissions and limitations
# under the License.
+import os
+
from dotenv import load_dotenv
import pytest
+import opendal
load_dotenv()
pytest_plugins = ("pytest_asyncio",)
+
+
+def pytest_configure(config):
+ # register an additional marker
+ config.addinivalue_line(
+ "markers",
+ "need_capability(*capability): mark test to run only on named
capability",
+ )
+
+
[email protected]()
+def service_name():
Review Comment:
Value would be None, and the test would be failed
```text
ERROR tests/test_capability.py::test_capability - TypeError: argument
'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_capability.py::test_capability_exception - TypeError:
argument 'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_read.py::test_sync_read - TypeError: argument 'scheme':
'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_read.py::test_async_read - TypeError: argument 'scheme':
'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_read.py::test_sync_read_stat - TypeError: argument
'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_read.py::test_async_read_stat - TypeError: argument
'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_read.py::test_sync_read_not_exists - TypeError: argument
'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_read.py::test_async_read_not_exists - TypeError: argument
'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_write.py::test_sync_write - TypeError: argument 'scheme':
'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_write.py::test_async_write - TypeError: argument 'scheme':
'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_write.py::test_sync_write_with_non_ascii_name - TypeError:
argument 'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_write.py::test_async_write_with_non_ascii_name - TypeError:
argument 'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_write.py::test_sync_create_dir - TypeError: argument
'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_write.py::test_async_create_dir - TypeError: argument
'scheme': 'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_write.py::test_sync_delete - TypeError: argument 'scheme':
'NoneType' object cannot be converted to 'PyString'
ERROR tests/test_write.py::test_async_delete - TypeError: argument 'scheme':
'NoneType' object cannot be converted to 'PyString'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]