Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace parent class BaseAPITestCase by unittest.TestCase #763

Closed
nixocio opened this issue Aug 22, 2017 · 1 comment
Closed

Replace parent class BaseAPITestCase by unittest.TestCase #763

nixocio opened this issue Aug 22, 2017 · 1 comment
Labels
Issue Type: Plan pulp2test issue to be migrated to pulp-2-tests repo

Comments

@nixocio
Copy link

nixocio commented Aug 22, 2017

Few tests fail due to time-out that happening during the execution of tear down.
To reduce the number of calls to client.delete(ORPHANS_PATH), and try to reduce the number of failures. Replace the BaseAPITestCase by unittest.TestCase.

    @classmethod
    def tearDownClass(cls):
        """Delete all resources named by ``resources``."""
        client = api.Client(cls.cfg)
        for resource in cls.resources:
            client.delete(resource)
        client.delete(ORPHANS_PATH)

Basically, it will be necessary pass class by class, replace the parent class and do the necessary re-factors.

See also: #762

@nixocio nixocio changed the title Replace BaseAPITestCase as parent class by unittest.TestCase Replace parent class BaseAPITestCase by unittest.TestCase Aug 22, 2017
@Ichimonji10
Copy link
Contributor

#1025 deprecated BaseAPITestCase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue Type: Plan pulp2test issue to be migrated to pulp-2-tests repo
Projects
None yet
Development

No branches or pull requests

3 participants