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

Unintentional test skips #40

Open
Mandera opened this issue Jun 2, 2023 · 0 comments
Open

Unintentional test skips #40

Mandera opened this issue Jun 2, 2023 · 0 comments

Comments

@Mandera
Copy link
Contributor

Mandera commented Jun 2, 2023

Sometimes a failing test will raise our custom exception which will skip the test, which will hide the actual problem.

Would be nice to be able to decorate something like this

from typing import Optional
from generalimport import *
from generalimport.test.funcs import ImportTestCase

class Test(ImportTestCase):
    @ensure_not_skipped
    def test_type_with_module(self):
        generalimport("fakepackage")
        import fakepackage

        def my_function1(something: Optional[fakepackage]):
            pass

        my_function1(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant