This is an automated email from the ASF dual-hosted git repository. tomaz pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 84b68be73045532110aa92eaa0b05873663ed994 Author: Tomaz Muraus <to...@tomaz.me> AuthorDate: Thu Apr 18 18:22:44 2024 +0200 Fix lint - remove unused imports, reformat code with black. --- libcloud/compute/drivers/equinixmetal.py | 10 +--------- libcloud/test/compute/test_equinixmetal.py | 3 ++- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/libcloud/compute/drivers/equinixmetal.py b/libcloud/compute/drivers/equinixmetal.py index 9edc53593..3a51187bb 100644 --- a/libcloud/compute/drivers/equinixmetal.py +++ b/libcloud/compute/drivers/equinixmetal.py @@ -22,18 +22,10 @@ except ImportError: # If not available will do things serially asyncio = None import json -import datetime from libcloud.utils.py3 import httplib from libcloud.common.base import JsonResponse, ConnectionKey -from libcloud.compute.base import ( - Node, - KeyPair, - NodeSize, - NodeImage, - NodeDriver, - NodeLocation, -) +from libcloud.compute.base import Node, KeyPair, NodeSize, NodeImage, NodeDriver, NodeLocation from libcloud.compute.types import Provider, NodeState, InvalidCredsError EQUINIXMETAL_ENDPOINT = "api.equinix.com" diff --git a/libcloud/test/compute/test_equinixmetal.py b/libcloud/test/compute/test_equinixmetal.py index 5deb8d4b8..14b896654 100644 --- a/libcloud/test/compute/test_equinixmetal.py +++ b/libcloud/test/compute/test_equinixmetal.py @@ -19,7 +19,6 @@ # import sys -import json import unittest # This is causing test failures inder Python 3.5 @@ -251,6 +250,7 @@ g5ZW2BiJzvqz5PebGS70y/ySCNW1qQmJURK/Wc1bt9en root@libcloud", break + class EquinixMetalMockHttp(MockHttp): fixtures = ComputeFileFixtures("equinixmetal") @@ -461,5 +461,6 @@ class EquinixMetalMockHttp(MockHttp): if method == "DELETE": return (httplib.OK, "", {}, httplib.responses[httplib.OK]) + if __name__ == "__main__": sys.exit(unittest.main())