Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

@pytest.fixture compatibility issue #24

Open
andras-tim opened this issue Jan 4, 2016 · 0 comments
Open

@pytest.fixture compatibility issue #24

andras-tim opened this issue Jan 4, 2016 · 0 comments

Comments

@andras-tim
Copy link
Contributor

Typesafety drops a typesafety.validator.TypesafetyError: Missing required argument '...' exception, when I decorate a py.test helper function with @pytest.fixture

import pytest

class TestFoo:
    @pytest.fixture
    def res(self):
        return Resource()

    def test_foo(self, res: Resource):
        assert res.bar is not None
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant