From 7ecc89e63161e272e943f30c19bebc492ac20d4c Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Thu, 22 Aug 2024 18:08:52 +0200 Subject: [PATCH] Version 3.18.0 --- CHANGELOG.md | 2 ++ pyproject.toml | 2 +- tests/providers/integration_tests.py | 1 + tests/providers/test_aurora.py | 1 + tests/providers/test_auto.py | 1 + tests/providers/test_azure.py | 1 + tests/providers/test_cloudflare.py | 7 +++---- tests/providers/test_cloudns.py | 1 + tests/providers/test_cloudxns.py | 1 + tests/providers/test_conoha.py | 1 + tests/providers/test_constellix.py | 1 + tests/providers/test_digitalocean.py | 1 + tests/providers/test_dinahosting.py | 1 + tests/providers/test_directadmin.py | 1 + tests/providers/test_dnsimple.py | 1 + tests/providers/test_dnsmadeeasy.py | 1 + tests/providers/test_dnspark.py | 1 + tests/providers/test_dnspod.py | 1 + tests/providers/test_dnsservices.py | 1 + tests/providers/test_dreamhost.py | 1 + tests/providers/test_dynu.py | 1 + tests/providers/test_easydns.py | 1 + tests/providers/test_easyname.py | 1 + tests/providers/test_euserv.py | 1 + tests/providers/test_exoscale.py | 1 + tests/providers/test_flexibleengine.py | 1 + tests/providers/test_gandi.py | 1 + tests/providers/test_gehirn.py | 1 + tests/providers/test_glesys.py | 1 + tests/providers/test_godaddy.py | 1 + tests/providers/test_googleclouddns.py | 1 + tests/providers/test_gransy.py | 1 + tests/providers/test_gratisdns.py | 1 + tests/providers/test_henet.py | 1 + tests/providers/test_hetzner.py | 1 + tests/providers/test_hostingde.py | 1 + tests/providers/test_hover.py | 1 + tests/providers/test_infoblox.py | 1 + tests/providers/test_infomaniak.py | 1 + tests/providers/test_internetbs.py | 1 + tests/providers/test_inwx.py | 1 + tests/providers/test_joker.py | 1 + tests/providers/test_linode.py | 1 + tests/providers/test_linode4.py | 1 + tests/providers/test_localzone.py | 1 + tests/providers/test_luadns.py | 1 + tests/providers/test_memset.py | 1 + tests/providers/test_misaka.py | 1 + tests/providers/test_namecheap.py | 1 + tests/providers/test_namecom.py | 1 + tests/providers/test_namesilo.py | 1 + tests/providers/test_netcup.py | 1 + tests/providers/test_nfsn.py | 1 + tests/providers/test_njalla.py | 1 + tests/providers/test_nsone.py | 1 + tests/providers/test_onapp.py | 1 + tests/providers/test_online.py | 1 + tests/providers/test_ovh.py | 1 + tests/providers/test_plesk.py | 1 + tests/providers/test_pointhq.py | 1 + tests/providers/test_powerdns.py | 1 + tests/providers/test_rackspace.py | 1 + tests/providers/test_rage4.py | 1 + tests/providers/test_rcodezero.py | 1 + tests/providers/test_route53.py | 1 + tests/providers/test_safedns.py | 1 + tests/providers/test_sakuracloud.py | 1 + tests/providers/test_softlayer.py | 1 + tests/providers/test_timeweb.py | 22 +++++++++++++--------- tests/providers/test_transip.py | 1 + tests/providers/test_ultradns.py | 1 + tests/providers/test_valuedomain.py | 1 + tests/providers/test_vercel.py | 1 + tests/providers/test_vultr.py | 1 + tests/providers/test_webgo.py | 1 + tests/providers/test_yandex.py | 1 + tests/providers/test_yandexcloud.py | 1 + tests/providers/test_zilore.py | 1 + tests/providers/test_zonomi.py | 1 + tests/test_config.py | 1 + tests/test_library.py | 1 + tests/test_output.py | 1 + tests/test_parser.py | 1 + 83 files changed, 98 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59f2ff4a6..d6013dd35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## master - CURRENT + +## 3.18.0 - 22/08/2024 ### Added * Add `timeweb` provider (#1850) * Add `qcloud` provider (#1824) diff --git a/pyproject.toml b/pyproject.toml index 1adaa767f..3938c80b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "dns-lexicon" -version = "3.17.0" +version = "3.18.0" description = "Manipulate DNS records on various DNS providers in a standardized/agnostic way" license = "MIT" keywords = [ diff --git a/tests/providers/integration_tests.py b/tests/providers/integration_tests.py index 23afa3d01..b47135953 100644 --- a/tests/providers/integration_tests.py +++ b/tests/providers/integration_tests.py @@ -1,4 +1,5 @@ """Base class for provider integration tests""" + import os from functools import wraps from typing import Optional diff --git a/tests/providers/test_aurora.py b/tests/providers/test_aurora.py index 86cab2c48..d66a8f7f9 100644 --- a/tests/providers/test_aurora.py +++ b/tests/providers/test_aurora.py @@ -1,4 +1,5 @@ """Integration tests for Aurora""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_auto.py b/tests/providers/test_auto.py index 3700a7a27..02e6bcf1b 100644 --- a/tests/providers/test_auto.py +++ b/tests/providers/test_auto.py @@ -1,4 +1,5 @@ """Integration tests for auto""" + import socket from shutil import which from unittest import TestCase, mock diff --git a/tests/providers/test_azure.py b/tests/providers/test_azure.py index 86e297b7e..2b0dca9e1 100644 --- a/tests/providers/test_azure.py +++ b/tests/providers/test_azure.py @@ -1,4 +1,5 @@ """Integration tests for Azure Cloud DNS""" + import re from unittest import TestCase diff --git a/tests/providers/test_cloudflare.py b/tests/providers/test_cloudflare.py index b78f59c12..26ebddb49 100644 --- a/tests/providers/test_cloudflare.py +++ b/tests/providers/test_cloudflare.py @@ -1,4 +1,5 @@ """Integration tests for Cloudflare""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 @@ -22,8 +23,6 @@ def _filter_headers(self): # Similarly for `--zone-id`, we want to control when its value is not empty, because # it will change the logic of the authentication process. def _test_fallback_fn(self): - return ( - lambda x: "placeholder_" + x - if x not in ("auth_username", "zone_id") - else "" + return lambda x: ( + "placeholder_" + x if x not in ("auth_username", "zone_id") else "" ) diff --git a/tests/providers/test_cloudns.py b/tests/providers/test_cloudns.py index aa5bbeeec..4ae1afa21 100644 --- a/tests/providers/test_cloudns.py +++ b/tests/providers/test_cloudns.py @@ -1,4 +1,5 @@ """Integration tests for CloudNS""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_cloudxns.py b/tests/providers/test_cloudxns.py index d756f104a..aa06b6709 100644 --- a/tests/providers/test_cloudxns.py +++ b/tests/providers/test_cloudxns.py @@ -1,4 +1,5 @@ """Integration tests for CloudXNS""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_conoha.py b/tests/providers/test_conoha.py index 765eed42f..bb98fbd1f 100644 --- a/tests/providers/test_conoha.py +++ b/tests/providers/test_conoha.py @@ -1,4 +1,5 @@ """Integration tests for Conoha""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_constellix.py b/tests/providers/test_constellix.py index e36bf6a01..af4b900d8 100644 --- a/tests/providers/test_constellix.py +++ b/tests/providers/test_constellix.py @@ -1,4 +1,5 @@ """Integration tests for Constellix""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_digitalocean.py b/tests/providers/test_digitalocean.py index 5f8607a62..e4d5c5f0c 100644 --- a/tests/providers/test_digitalocean.py +++ b/tests/providers/test_digitalocean.py @@ -1,4 +1,5 @@ """Integration tests for DigitalOcean""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_dinahosting.py b/tests/providers/test_dinahosting.py index bcda17635..8b6bbe11c 100644 --- a/tests/providers/test_dinahosting.py +++ b/tests/providers/test_dinahosting.py @@ -1,4 +1,5 @@ """Integration tests for DigitalOcean""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_directadmin.py b/tests/providers/test_directadmin.py index 8d5bdb7ef..de30bf15b 100644 --- a/tests/providers/test_directadmin.py +++ b/tests/providers/test_directadmin.py @@ -1,4 +1,5 @@ """Integration tests for DirectAdmin""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_dnsimple.py b/tests/providers/test_dnsimple.py index e1e582f17..0a58ed216 100644 --- a/tests/providers/test_dnsimple.py +++ b/tests/providers/test_dnsimple.py @@ -1,4 +1,5 @@ """Integration tests for DNSSimple""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_dnsmadeeasy.py b/tests/providers/test_dnsmadeeasy.py index ecf553f59..82528774d 100644 --- a/tests/providers/test_dnsmadeeasy.py +++ b/tests/providers/test_dnsmadeeasy.py @@ -1,4 +1,5 @@ """Integration tests for DNSMadeEasy""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_dnspark.py b/tests/providers/test_dnspark.py index 5aed2f280..33d2e6c0e 100644 --- a/tests/providers/test_dnspark.py +++ b/tests/providers/test_dnspark.py @@ -1,4 +1,5 @@ """Integration tests for DNSPark""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_dnspod.py b/tests/providers/test_dnspod.py index ff5afbc30..a82b027f2 100644 --- a/tests/providers/test_dnspod.py +++ b/tests/providers/test_dnspod.py @@ -1,4 +1,5 @@ """Integration tests for DNSPod""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_dnsservices.py b/tests/providers/test_dnsservices.py index 8b556647c..bd4be0342 100644 --- a/tests/providers/test_dnsservices.py +++ b/tests/providers/test_dnsservices.py @@ -1,4 +1,5 @@ """Integration tests for DNS.services""" + import re from unittest import TestCase diff --git a/tests/providers/test_dreamhost.py b/tests/providers/test_dreamhost.py index 19fd787be..21ff0d871 100644 --- a/tests/providers/test_dreamhost.py +++ b/tests/providers/test_dreamhost.py @@ -1,4 +1,5 @@ """Integration tests for Dreamhost""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_dynu.py b/tests/providers/test_dynu.py index e037d0428..c394f84c8 100644 --- a/tests/providers/test_dynu.py +++ b/tests/providers/test_dynu.py @@ -1,4 +1,5 @@ """Integration tests for Dynu.com""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_easydns.py b/tests/providers/test_easydns.py index 3041e9e15..885dacff0 100644 --- a/tests/providers/test_easydns.py +++ b/tests/providers/test_easydns.py @@ -1,4 +1,5 @@ """Integration tests for EasyDNS""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_easyname.py b/tests/providers/test_easyname.py index 40ab4539a..a7700ac80 100644 --- a/tests/providers/test_easyname.py +++ b/tests/providers/test_easyname.py @@ -1,4 +1,5 @@ """Integration tests for EasyName""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_euserv.py b/tests/providers/test_euserv.py index f209d35aa..415329ad4 100644 --- a/tests/providers/test_euserv.py +++ b/tests/providers/test_euserv.py @@ -3,6 +3,7 @@ Author: Matthias Schoettle (@mschoettle), 2019 """ + import json import re from unittest import TestCase diff --git a/tests/providers/test_exoscale.py b/tests/providers/test_exoscale.py index 1eabdf51f..021c32581 100644 --- a/tests/providers/test_exoscale.py +++ b/tests/providers/test_exoscale.py @@ -11,6 +11,7 @@ export LEXICON_EXOSCALE_SECRET=xxx """ + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_flexibleengine.py b/tests/providers/test_flexibleengine.py index da20426d6..a325a83a4 100644 --- a/tests/providers/test_flexibleengine.py +++ b/tests/providers/test_flexibleengine.py @@ -1,4 +1,5 @@ """Integration tests for FlexibleEngine Cloud""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_gandi.py b/tests/providers/test_gandi.py index 5be9bc395..8c739b690 100644 --- a/tests/providers/test_gandi.py +++ b/tests/providers/test_gandi.py @@ -1,4 +1,5 @@ """Integration tests for Gandi""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_gehirn.py b/tests/providers/test_gehirn.py index f249b4fb0..e9621068a 100644 --- a/tests/providers/test_gehirn.py +++ b/tests/providers/test_gehirn.py @@ -1,4 +1,5 @@ """Integration tests for Gehirn""" + from unittest import TestCase from integration_tests import IntegrationTestsV1 diff --git a/tests/providers/test_glesys.py b/tests/providers/test_glesys.py index 887d38e9b..32774616a 100644 --- a/tests/providers/test_glesys.py +++ b/tests/providers/test_glesys.py @@ -1,4 +1,5 @@ """Integration tests for Glesys""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_godaddy.py b/tests/providers/test_godaddy.py index f4909e278..155e680ea 100644 --- a/tests/providers/test_godaddy.py +++ b/tests/providers/test_godaddy.py @@ -1,4 +1,5 @@ """Integration tests for Goddady""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_googleclouddns.py b/tests/providers/test_googleclouddns.py index 77c49119c..26ca58b57 100644 --- a/tests/providers/test_googleclouddns.py +++ b/tests/providers/test_googleclouddns.py @@ -1,4 +1,5 @@ """Integration tests for Google Cloud DNS""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_gransy.py b/tests/providers/test_gransy.py index 0615dffad..826c9146e 100644 --- a/tests/providers/test_gransy.py +++ b/tests/providers/test_gransy.py @@ -1,4 +1,5 @@ """Integration tests for Gransy""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_gratisdns.py b/tests/providers/test_gratisdns.py index a97da28dc..5dda70345 100644 --- a/tests/providers/test_gratisdns.py +++ b/tests/providers/test_gratisdns.py @@ -1,4 +1,5 @@ """Integration tests for GratisDNS""" + import re from unittest import TestCase diff --git a/tests/providers/test_henet.py b/tests/providers/test_henet.py index 6349757b5..e273511ac 100644 --- a/tests/providers/test_henet.py +++ b/tests/providers/test_henet.py @@ -1,4 +1,5 @@ """Integration tests for Henet""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_hetzner.py b/tests/providers/test_hetzner.py index 72183c32c..803676b93 100644 --- a/tests/providers/test_hetzner.py +++ b/tests/providers/test_hetzner.py @@ -1,4 +1,5 @@ """Integration tests for Hetzner""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_hostingde.py b/tests/providers/test_hostingde.py index da6765418..2ba72af64 100644 --- a/tests/providers/test_hostingde.py +++ b/tests/providers/test_hostingde.py @@ -1,4 +1,5 @@ """Integration tests for HostingDE provider""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_hover.py b/tests/providers/test_hover.py index 77774baf3..b9c0a6e2a 100644 --- a/tests/providers/test_hover.py +++ b/tests/providers/test_hover.py @@ -1,4 +1,5 @@ """Integration tests for Hover""" + import json import re from unittest import TestCase diff --git a/tests/providers/test_infoblox.py b/tests/providers/test_infoblox.py index 1a5d2ad99..7d76a1767 100644 --- a/tests/providers/test_infoblox.py +++ b/tests/providers/test_infoblox.py @@ -18,6 +18,7 @@ auth_user = placeholder_auth_user auth_psw = placeholder_auth_psw """ + import os from unittest import TestCase diff --git a/tests/providers/test_infomaniak.py b/tests/providers/test_infomaniak.py index 378977cbb..576272f94 100644 --- a/tests/providers/test_infomaniak.py +++ b/tests/providers/test_infomaniak.py @@ -1,4 +1,5 @@ """Integration tests for Infomaniak""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_internetbs.py b/tests/providers/test_internetbs.py index b7c4c0d91..70f3d202b 100644 --- a/tests/providers/test_internetbs.py +++ b/tests/providers/test_internetbs.py @@ -1,4 +1,5 @@ """Integration tests for InternetBS""" + import os from unittest import TestCase diff --git a/tests/providers/test_inwx.py b/tests/providers/test_inwx.py index a92c14318..c59206c02 100644 --- a/tests/providers/test_inwx.py +++ b/tests/providers/test_inwx.py @@ -1,4 +1,5 @@ """Integration tests for INWX""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_joker.py b/tests/providers/test_joker.py index c7b975835..ded0e39ef 100644 --- a/tests/providers/test_joker.py +++ b/tests/providers/test_joker.py @@ -1,4 +1,5 @@ """Integration tests for Joker.com provider""" + import re from unittest import TestCase diff --git a/tests/providers/test_linode.py b/tests/providers/test_linode.py index bf92d0612..fda7d5763 100644 --- a/tests/providers/test_linode.py +++ b/tests/providers/test_linode.py @@ -1,4 +1,5 @@ """Integration tests for Linode""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_linode4.py b/tests/providers/test_linode4.py index 0bf9d5970..9b0d7edd4 100644 --- a/tests/providers/test_linode4.py +++ b/tests/providers/test_linode4.py @@ -1,4 +1,5 @@ """Integration tests for Linode V4""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_localzone.py b/tests/providers/test_localzone.py index fe52ce0d7..47ebcb504 100644 --- a/tests/providers/test_localzone.py +++ b/tests/providers/test_localzone.py @@ -1,4 +1,5 @@ """Integration tests for Localzone""" + import os from unittest import TestCase diff --git a/tests/providers/test_luadns.py b/tests/providers/test_luadns.py index e8a6469b7..665b80f5e 100644 --- a/tests/providers/test_luadns.py +++ b/tests/providers/test_luadns.py @@ -1,4 +1,5 @@ """Integration tests for LuaDNS""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_memset.py b/tests/providers/test_memset.py index 76061bb6b..97573508f 100644 --- a/tests/providers/test_memset.py +++ b/tests/providers/test_memset.py @@ -1,4 +1,5 @@ """Integration tests for Memset""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_misaka.py b/tests/providers/test_misaka.py index bae5e82ec..7dac4698b 100644 --- a/tests/providers/test_misaka.py +++ b/tests/providers/test_misaka.py @@ -1,4 +1,5 @@ """Integration tests for Misaka.IO""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_namecheap.py b/tests/providers/test_namecheap.py index 045d46077..9ce95576e 100644 --- a/tests/providers/test_namecheap.py +++ b/tests/providers/test_namecheap.py @@ -40,6 +40,7 @@ export LEXICON_NAMECHEAP_DOMAIN={DOMAIN_1} export LEXICON_NAMECHEAP_DOMAINMANAGED={DOMAIN_2} """ + import os from unittest import TestCase diff --git a/tests/providers/test_namecom.py b/tests/providers/test_namecom.py index d2a082ef1..83701b0b4 100644 --- a/tests/providers/test_namecom.py +++ b/tests/providers/test_namecom.py @@ -1,4 +1,5 @@ """Integration tests for Name.com""" + import json from unittest import TestCase from unittest.mock import ANY, Mock, call, patch diff --git a/tests/providers/test_namesilo.py b/tests/providers/test_namesilo.py index 0f6e3895d..f49b036f2 100644 --- a/tests/providers/test_namesilo.py +++ b/tests/providers/test_namesilo.py @@ -1,4 +1,5 @@ """Integration tests for Namesilo""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_netcup.py b/tests/providers/test_netcup.py index ffdd31bf1..22b6ec2ce 100644 --- a/tests/providers/test_netcup.py +++ b/tests/providers/test_netcup.py @@ -1,4 +1,5 @@ """Integration tests for netcup""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_nfsn.py b/tests/providers/test_nfsn.py index 0373c06ea..0db02091d 100644 --- a/tests/providers/test_nfsn.py +++ b/tests/providers/test_nfsn.py @@ -16,6 +16,7 @@ - LEXICON_NFSN_TOKEN -> Your API Key - LEXICON_NFSN_DOMAIN -> Domain you want to test with """ + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_njalla.py b/tests/providers/test_njalla.py index cdbd4f736..cc8000211 100644 --- a/tests/providers/test_njalla.py +++ b/tests/providers/test_njalla.py @@ -1,4 +1,5 @@ """Integration tests for Njalla provider""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_nsone.py b/tests/providers/test_nsone.py index a64f50112..bd97ca4f4 100644 --- a/tests/providers/test_nsone.py +++ b/tests/providers/test_nsone.py @@ -1,4 +1,5 @@ """Integration tests for nsone""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_onapp.py b/tests/providers/test_onapp.py index 8f9d1fd12..d21047ea1 100644 --- a/tests/providers/test_onapp.py +++ b/tests/providers/test_onapp.py @@ -1,4 +1,5 @@ """Integration tests for Onapp""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_online.py b/tests/providers/test_online.py index 5bb5ca4c6..dd879e8d2 100644 --- a/tests/providers/test_online.py +++ b/tests/providers/test_online.py @@ -1,4 +1,5 @@ """Integration tests for Online.net""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_ovh.py b/tests/providers/test_ovh.py index b77e61521..77855e68d 100644 --- a/tests/providers/test_ovh.py +++ b/tests/providers/test_ovh.py @@ -1,4 +1,5 @@ """Integration tests for OVH""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_plesk.py b/tests/providers/test_plesk.py index 027b2eaba..05923bfd1 100644 --- a/tests/providers/test_plesk.py +++ b/tests/providers/test_plesk.py @@ -1,4 +1,5 @@ """Integration tests for Plesk""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_pointhq.py b/tests/providers/test_pointhq.py index a5f850524..401e26ba9 100644 --- a/tests/providers/test_pointhq.py +++ b/tests/providers/test_pointhq.py @@ -1,4 +1,5 @@ """Integration tests for PointHq""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_powerdns.py b/tests/providers/test_powerdns.py index eedd446e0..db8b84906 100644 --- a/tests/providers/test_powerdns.py +++ b/tests/providers/test_powerdns.py @@ -1,4 +1,5 @@ """Integration tests for PowerDNS""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_rackspace.py b/tests/providers/test_rackspace.py index 6db26c469..9ece38d5a 100644 --- a/tests/providers/test_rackspace.py +++ b/tests/providers/test_rackspace.py @@ -1,4 +1,5 @@ """"Test for rackspace implementation of the lexicon interface""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_rage4.py b/tests/providers/test_rage4.py index a7f609a78..a6d7dfdf9 100644 --- a/tests/providers/test_rage4.py +++ b/tests/providers/test_rage4.py @@ -1,4 +1,5 @@ """Integration tests for Rage4""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_rcodezero.py b/tests/providers/test_rcodezero.py index 71042dcde..84127cfe2 100644 --- a/tests/providers/test_rcodezero.py +++ b/tests/providers/test_rcodezero.py @@ -1,4 +1,5 @@ """Integration tests for RcodeZero""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_route53.py b/tests/providers/test_route53.py index 58f0ac3ae..d0be14b0d 100644 --- a/tests/providers/test_route53.py +++ b/tests/providers/test_route53.py @@ -1,4 +1,5 @@ """Test for route53 implementation of the interface.""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_safedns.py b/tests/providers/test_safedns.py index 5b38e9681..12ed4f99a 100644 --- a/tests/providers/test_safedns.py +++ b/tests/providers/test_safedns.py @@ -1,4 +1,5 @@ """Test for one implementation of the interface""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_sakuracloud.py b/tests/providers/test_sakuracloud.py index b5d50e463..1fcc5a573 100644 --- a/tests/providers/test_sakuracloud.py +++ b/tests/providers/test_sakuracloud.py @@ -1,4 +1,5 @@ """Integration tests for SakuraCloud""" + from unittest import TestCase import pytest diff --git a/tests/providers/test_softlayer.py b/tests/providers/test_softlayer.py index a31c72b95..c8a140e78 100644 --- a/tests/providers/test_softlayer.py +++ b/tests/providers/test_softlayer.py @@ -1,4 +1,5 @@ """Integration tests for Softlayer""" + from unittest import TestCase from integration_tests import IntegrationTestsV1 diff --git a/tests/providers/test_timeweb.py b/tests/providers/test_timeweb.py index 49f54a811..2e20ab23c 100644 --- a/tests/providers/test_timeweb.py +++ b/tests/providers/test_timeweb.py @@ -1,9 +1,9 @@ """Integration tests for Timeweb""" -from unittest import TestCase -from integration_tests import IntegrationTestsV2 +from unittest import TestCase import pytest +from integration_tests import IntegrationTestsV2 # Hook into testing framework by inheriting unittest.TestCase and reuse @@ -12,17 +12,17 @@ class TimewebProviderTests(TestCase, IntegrationTestsV2): """Integration tests for Timeweb provider""" - provider_name = 'timeweb' - domain = 'example.com' + provider_name = "timeweb" + domain = "example.com" def _filter_post_data_parameters(self): - return ['login_token'] + return ["login_token"] def _filter_headers(self): - return ['Authorization'] + return ["Authorization"] def _filter_query_parameters(self): - return ['secret_key'] + return ["secret_key"] def _filter_response(self, response): """See `IntegrationTests._filter_response` for more information on how @@ -30,11 +30,15 @@ def _filter_response(self, response): return response @pytest.mark.skip(reason="provider only supports TXT records without delegation") - def test_provider_when_calling_create_record_for_A_with_valid_name_and_content(self): + def test_provider_when_calling_create_record_for_A_with_valid_name_and_content( + self, + ): return @pytest.mark.skip(reason="provider only supports TXT records without delegation") - def test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content(self): + def test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content( + self, + ): return @pytest.mark.skip(reason="provider does not support TTL") diff --git a/tests/providers/test_transip.py b/tests/providers/test_transip.py index 55e6f22e5..d91cceabd 100644 --- a/tests/providers/test_transip.py +++ b/tests/providers/test_transip.py @@ -1,4 +1,5 @@ """Integration tests for Transip""" + import re from unittest import TestCase diff --git a/tests/providers/test_ultradns.py b/tests/providers/test_ultradns.py index fdb37d7b2..861a78149 100644 --- a/tests/providers/test_ultradns.py +++ b/tests/providers/test_ultradns.py @@ -1,4 +1,5 @@ """Integration tests for UltraDNS""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_valuedomain.py b/tests/providers/test_valuedomain.py index 59f0768ef..3995617fa 100644 --- a/tests/providers/test_valuedomain.py +++ b/tests/providers/test_valuedomain.py @@ -1,4 +1,5 @@ """Test for valuedomain implementation of the interface.""" + import sys from unittest import TestCase, skipIf diff --git a/tests/providers/test_vercel.py b/tests/providers/test_vercel.py index d5f25499f..f033b8124 100644 --- a/tests/providers/test_vercel.py +++ b/tests/providers/test_vercel.py @@ -1,4 +1,5 @@ """Integration tests for Vercel""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_vultr.py b/tests/providers/test_vultr.py index 867d3b454..a50a231a0 100644 --- a/tests/providers/test_vultr.py +++ b/tests/providers/test_vultr.py @@ -1,4 +1,5 @@ """Integration tests for Vultr""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_webgo.py b/tests/providers/test_webgo.py index 5cd4e4940..060a26dca 100644 --- a/tests/providers/test_webgo.py +++ b/tests/providers/test_webgo.py @@ -1,4 +1,5 @@ """Integration tests for Webgo""" + import re from unittest import TestCase diff --git a/tests/providers/test_yandex.py b/tests/providers/test_yandex.py index c8a2e6b16..ecdec2e9d 100644 --- a/tests/providers/test_yandex.py +++ b/tests/providers/test_yandex.py @@ -1,4 +1,5 @@ """Integration tests for Yandex PDD""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_yandexcloud.py b/tests/providers/test_yandexcloud.py index a4de4f1eb..0b4f23394 100644 --- a/tests/providers/test_yandexcloud.py +++ b/tests/providers/test_yandexcloud.py @@ -1,4 +1,5 @@ """Integration tests for Yandex Cloud provider""" + from unittest import TestCase from integration_tests import IntegrationTestsV2 diff --git a/tests/providers/test_zilore.py b/tests/providers/test_zilore.py index fb6d36137..e3666ef24 100644 --- a/tests/providers/test_zilore.py +++ b/tests/providers/test_zilore.py @@ -1,4 +1,5 @@ """Integration tests for Zilore""" + from unittest import TestCase from integration_tests import IntegrationTestsV2, vcr_integration_test diff --git a/tests/providers/test_zonomi.py b/tests/providers/test_zonomi.py index 41337571b..e789823c2 100644 --- a/tests/providers/test_zonomi.py +++ b/tests/providers/test_zonomi.py @@ -1,4 +1,5 @@ """Integratoin tests for Zonomi""" + from unittest import TestCase import pytest diff --git a/tests/test_config.py b/tests/test_config.py index c4471aa2f..9f8f0c8a8 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,4 +1,5 @@ """Unit tests for the Lexicon config mechanism""" + import pytest from lexicon._private.parser import generate_cli_main_parser diff --git a/tests/test_library.py b/tests/test_library.py index db5160aa9..7cd9f6d42 100644 --- a/tests/test_library.py +++ b/tests/test_library.py @@ -5,6 +5,7 @@ - config should be passed correctly to provider, - relevant provider method should be invoked for a given config. """ + import importlib import pytest diff --git a/tests/test_output.py b/tests/test_output.py index abbb60db0..2ebc2b5ea 100644 --- a/tests/test_output.py +++ b/tests/test_output.py @@ -1,4 +1,5 @@ """ Ensure that stdout corresponds to the given reference output """ + import json from lexicon._private import cli diff --git a/tests/test_parser.py b/tests/test_parser.py index 7c44e8357..8a9c4e26f 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -1,4 +1,5 @@ """Unit tests for the Lexicon CLI parser""" + import pytest from lexicon._private import parser