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

@pytest.fixture compatibility issue #24

@andras-tim

Description

@andras-tim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions