@@ -1,15 +1,15 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2019 Mellanox Technologies, Inc. All rights reserved. See COPYING file
+from pyverbs.tests.base import PyverbsAPITestCase
from pyverbs.addr import GlobalRoute, AHAttr, AH
from pyverbs.pyverbs_error import PyverbsError
-from pyverbs.tests.base import PyverbsTestCase
import pyverbs.device as d
import pyverbs.enums as e
from pyverbs.pd import PD
from pyverbs.cq import WC
-class AHTest(PyverbsTestCase):
+class AHTest(PyverbsAPITestCase):
"""
Test various functionalities of the AH class.
"""
@@ -5,7 +5,7 @@ import unittest
import pyverbs.device as d
-class PyverbsTestCase(unittest.TestCase):
+class PyverbsAPITestCase(unittest.TestCase):
def setUp(self):
"""
Opens the devices and queries them
@@ -7,12 +7,12 @@ import random
from pyverbs.cq import CompChannel, CQ, CqInitAttrEx, CQEX
from pyverbs.pyverbs_error import PyverbsError
-from pyverbs.tests.base import PyverbsTestCase
+from pyverbs.tests.base import PyverbsAPITestCase
import pyverbs.tests.utils as u
import pyverbs.enums as e
-class CQTest(PyverbsTestCase):
+class CQTest(PyverbsAPITestCase):
"""
Test various functionalities of the CQ class.
"""
@@ -84,7 +84,7 @@ class CQTest(PyverbsTestCase):
cq.close()
-class CCTest(PyverbsTestCase):
+class CCTest(PyverbsAPITestCase):
"""
Test various functionalities of the Completion Channel class.
"""
@@ -105,7 +105,7 @@ class CCTest(PyverbsTestCase):
cc.close()
-class CQEXTest(PyverbsTestCase):
+class CQEXTest(PyverbsAPITestCase):
"""
Test various functionalities of the CQEX class.
"""
@@ -8,7 +8,7 @@ import resource
import random
from pyverbs.pyverbs_error import PyverbsError, PyverbsRDMAError
-from pyverbs.tests.base import PyverbsTestCase
+from pyverbs.tests.base import PyverbsAPITestCase
import pyverbs.tests.utils as u
import pyverbs.device as d
@@ -137,7 +137,7 @@ class DeviceTest(unittest.TestCase):
format(p=port))
-class DMTest(PyverbsTestCase):
+class DMTest(PyverbsAPITestCase):
"""
Test various functionalities of the DM class.
"""
@@ -7,7 +7,7 @@ from itertools import combinations as com
import random
from pyverbs.pyverbs_error import PyverbsRDMAError, PyverbsError
-from pyverbs.tests.base import PyverbsTestCase
+from pyverbs.tests.base import PyverbsAPITestCase
from pyverbs.base import PyverbsRDMAErrno
from pyverbs.mr import MR, MW, DMMR
import pyverbs.tests.utils as u
@@ -18,7 +18,7 @@ import pyverbs.enums as e
MAX_IO_LEN = 1048576
-class MRTest(PyverbsTestCase):
+class MRTest(PyverbsAPITestCase):
"""
Test various functionalities of the MR class.
"""
@@ -154,7 +154,7 @@ class MRTest(PyverbsTestCase):
mr.buf
-class MWTest(PyverbsTestCase):
+class MWTest(PyverbsAPITestCase):
"""
Test various functionalities of the MW class.
"""
@@ -200,7 +200,7 @@ class MWTest(PyverbsTestCase):
format(t=mw_type))
-class DMMRTest(PyverbsTestCase):
+class DMMRTest(PyverbsAPITestCase):
"""
Test various functionalities of the DMMR class.
"""
@@ -5,13 +5,13 @@ Test module for pyverbs' pd module.
"""
import random
-from pyverbs.tests.base import PyverbsTestCase
+from pyverbs.tests.base import PyverbsAPITestCase
from pyverbs.base import PyverbsRDMAErrno
import pyverbs.device as d
from pyverbs.pd import PD
-class PDTest(PyverbsTestCase):
+class PDTest(PyverbsAPITestCase):
"""
Test various functionalities of the PD class.
"""
@@ -5,7 +5,7 @@ Test module for pyverbs' qp module.
"""
import random
-from pyverbs.tests.base import PyverbsTestCase
+from pyverbs.tests.base import PyverbsAPITestCase
from pyverbs.qp import QPInitAttr, QPAttr, QP
import pyverbs.tests.utils as u
import pyverbs.enums as e
@@ -13,7 +13,7 @@ from pyverbs.pd import PD
from pyverbs.cq import CQ
-class QPTest(PyverbsTestCase):
+class QPTest(PyverbsAPITestCase):
"""
Test various functionalities of the QP class.
"""
Rename PyverbsTestCase to PyverbsAPITestCase as a preparation for addition of feature-based tests. Signed-off-by: Noa Osherovich <noaos@mellanox.com> --- pyverbs/tests/addr.py | 4 ++-- pyverbs/tests/base.py | 2 +- pyverbs/tests/cq.py | 8 ++++---- pyverbs/tests/device.py | 4 ++-- pyverbs/tests/mr.py | 8 ++++---- pyverbs/tests/pd.py | 4 ++-- pyverbs/tests/qp.py | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-)