This is an automated email from the ASF dual-hosted git repository. tomaz pushed a commit to branch dependabot/pip/pytest-8.0.2 in repository https://gitbox.apache.org/repos/asf/libcloud.git
The following commit(s) were added to refs/heads/dependabot/pip/pytest-8.0.2 by this push: new 81dd7c1ad Test a change to see if it helps with cross test pollution and related CI test run failures. 81dd7c1ad is described below commit 81dd7c1ad4e7c677c75f31166c58ef6ee56cfd6b Author: Tomaz Muraus <to...@tomaz.me> AuthorDate: Tue Apr 16 18:39:03 2024 +0200 Test a change to see if it helps with cross test pollution and related CI test run failures. --- libcloud/test/common/test_digitalocean_v2.py | 4 ++++ libcloud/test/dns/test_digitalocean.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/libcloud/test/common/test_digitalocean_v2.py b/libcloud/test/common/test_digitalocean_v2.py index e73979ae8..ddf993615 100644 --- a/libcloud/test/common/test_digitalocean_v2.py +++ b/libcloud/test/common/test_digitalocean_v2.py @@ -21,6 +21,7 @@ from libcloud.common.types import InvalidCredsError from libcloud.test.secrets import DIGITALOCEAN_v2_PARAMS from libcloud.test.file_fixtures import FileFixtures from libcloud.common.digitalocean import DigitalOceanBaseDriver +from libcloud.dns.drivers.digitalocean import DigitalOceanDNSDriver class DigitalOceanTests(LibcloudTestCase): @@ -29,6 +30,9 @@ class DigitalOceanTests(LibcloudTestCase): DigitalOceanMockHttp.type = None self.driver = DigitalOceanBaseDriver(*DIGITALOCEAN_v2_PARAMS) + def tearDown(self): + DigitalOceanMockHttp.type = None + def test_authentication(self): DigitalOceanMockHttp.type = "UNAUTHORIZED" self.assertRaises(InvalidCredsError, self.driver.ex_account_info) diff --git a/libcloud/test/dns/test_digitalocean.py b/libcloud/test/dns/test_digitalocean.py index 41c195874..cfecd115f 100644 --- a/libcloud/test/dns/test_digitalocean.py +++ b/libcloud/test/dns/test_digitalocean.py @@ -29,6 +29,9 @@ class DigitalOceanDNSTests(LibcloudTestCase): DigitalOceanDNSMockHttp.type = None self.driver = DigitalOceanDNSDriver(*DIGITALOCEAN_v2_PARAMS) + def tearDown(self): + DigitalOceanDNSMockHttp.type = None + def test_list_zones(self): zones = self.driver.list_zones() self.assertTrue(len(zones) >= 1)