Skip to content

Commit f81a0f6

Browse files
committed
Simplify test CRUD remotes
Remove unnecessary repo creation as part of the CRUD remotes tests. [noissue]
1 parent 09a675b commit f81a0f6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pulp_python/tests/functional/api/test_crud_remotes.py

-14
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
from requests.exceptions import HTTPError
55
from pulp_smash import api, config, utils
6-
from pulp_smash.pulp3.constants import REPO_PATH
7-
from pulp_smash.pulp3.utils import gen_repo
86

97
from pulp_python.tests.functional.constants import (
108
PYTHON_REMOTE_PATH,
@@ -25,21 +23,9 @@ class CRUDRemotesTestCase(unittest.TestCase):
2523
def setUpClass(cls):
2624
"""
2725
Create class-wide variables.
28-
29-
In order to create a remote a repository has to be created first.
30-
3126
"""
3227
cls.cfg = config.get_config()
3328
cls.client = api.Client(cls.cfg, api.json_handler)
34-
cls.remote = {}
35-
cls.repo = cls.client.post(REPO_PATH, gen_repo())
36-
37-
@classmethod
38-
def tearDownClass(cls):
39-
"""
40-
Clean class-wide variable.
41-
"""
42-
cls.client.delete(cls.repo['_href'])
4329

4430
def test_01_create_remote(self):
4531
"""

0 commit comments

Comments
 (0)