add __all__ to avoid linting warnings#450
Build #20260615.1 had test failures
Details
- Failed: 1,932 (69.40%)
- Passed: 852 (30.60%)
- Other: 0 (0.00%)
- Total: 2,784
Annotations
Check failure on line 8535 in Build log
azure-pipelines / python-api
Build log #L8535
Bash exited with code '1'.
Check failure on line 8535 in Build log
azure-pipelines / python-api
Build log #L8535
Bash exited with code '1'.
Check failure on line 8536 in Build log
azure-pipelines / python-api
Build log #L8536
Bash exited with code '1'.
Check failure on line 8535 in Build log
azure-pipelines / python-api
Build log #L8535
Bash exited with code '1'.
Check failure on line 1 in tests/test_api.py::TestHumanUserAuth::test_humanuser_find
azure-pipelines / python-api
tests/test_api.py::TestHumanUserAuth::test_humanuser_find
Test failed
azure-pipelines / python-api
tests/test_api.py::TestHumanUserAuth::test_humanuser_upload_thumbnail_for_version
Test failed
Check failure on line 1 in tests/test_client.py::TestShotgunClientInterface::test_client_interface
azure-pipelines / python-api
tests/test_client.py::TestShotgunClientInterface::test_client_interface
tests/base.py:124: in setUp
super().setUp()
tests/base.py:79: in setUp
self.sg = api.Shotgun(
shotgun_api3/shotgun.py:665: in __init__
self.config.set_server_params(self.base_url)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <shotgun_api3.shotgun._Config object at 0x7fe803e42f10>
base_url = '$(ci_site)'
def set_server_params(self, base_url: str) -> None:
"""
Set the different server related fields based on the passed in URL.
This will impact the following attributes:
- scheme: http or https
- api_path: usually /api3/json
- server: usually something.shotgunstudio.com
:param str base_url: The server URL.
:raises ValueError: Raised if protocol is not http or https.
"""
self.scheme, self.server, api_base, _, _ = urllib.parse.urlsplit(base_url)
if self.scheme not in ("http", "https"):
> raise ValueError("base_url must use http or https got '%s'" % base_url)
E ValueError: base_url must use http or https got '$(ci_site)'
shotgun_api3/shotgun.py:461: ValueError
Raw output
/home/vsts/work/1/s/shotgun_api3/shotgun.py:461: ValueError: base_url must use http or https got '$(ci_site)'
Check failure on line 1 in tests/test_client.py::TestShotgunClientInterface::test_module_interface
azure-pipelines / python-api
tests/test_client.py::TestShotgunClientInterface::test_module_interface
tests/base.py:124: in setUp
super().setUp()
tests/base.py:79: in setUp
self.sg = api.Shotgun(
shotgun_api3/shotgun.py:665: in __init__
self.config.set_server_params(self.base_url)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <shotgun_api3.shotgun._Config object at 0x7fe803ab2650>
base_url = '$(ci_site)'
def set_server_params(self, base_url: str) -> None:
"""
Set the different server related fields based on the passed in URL.
This will impact the following attributes:
- scheme: http or https
- api_path: usually /api3/json
- server: usually something.shotgunstudio.com
:param str base_url: The server URL.
:raises ValueError: Raised if protocol is not http or https.
"""
self.scheme, self.server, api_base, _, _ = urllib.parse.urlsplit(base_url)
if self.scheme not in ("http", "https"):
> raise ValueError("base_url must use http or https got '%s'" % base_url)
E ValueError: base_url must use http or https got '$(ci_site)'
shotgun_api3/shotgun.py:461: ValueError
Raw output
/home/vsts/work/1/s/shotgun_api3/shotgun.py:461: ValueError: base_url must use http or https got '$(ci_site)'