Remove six from functional tests

This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: Ic0b3687c47b6f3ac51858084bcf11a5c5a185759
This commit is contained in:
Takashi Kajinami 2024-02-17 11:59:36 +09:00
parent 627b9a8260
commit aea63db390
2 changed files with 3 additions and 6 deletions

View File

@ -11,16 +11,14 @@
# under the License.
import abc
from urllib import parse
import six
from six.moves.urllib import parse
from tempest.lib.common import rest_client
from magnum.tests.functional.common import config
@six.add_metaclass(abc.ABCMeta)
class MagnumClient(rest_client.RestClient):
class MagnumClient(rest_client.RestClient, metaclass=abc.ABCMeta):
"""Abstract class responsible for setting up auth provider"""
def __init__(self, auth_provider):

View File

@ -17,14 +17,13 @@ test_magnum
Tests for `magnum` module.
"""
import configparser
import os
import subprocess
import tempfile
import time
import fixtures
from six.moves import configparser
from heatclient import client as heatclient
from keystoneauth1.identity import v3 as ksa_v3
from keystoneauth1 import session as ksa_session