How to use the pluggy.varnames function in pluggy

To help you get started, we’ve selected a few pluggy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pytest-dev / pluggy / testing / test_pluggy.py View on Github external
def __init__(self, x):
            pass

    class D:
        pass

    class E(object):
        def __init__(self, x):
            pass

    class F(object):
        pass

    assert varnames(C) == ("x",)
    assert varnames(D) == ()
    assert varnames(E) == ("x",)
    assert varnames(F) == ()
github web-platform-tests / wpt / tools / third_party / pluggy / testing / test_helpers.py View on Github external
def test_varnames_class():
    class C(object):
        def __init__(self, x):
            pass

    class D(object):
        pass

    class E(object):
        def __init__(self, x):
            pass

    class F(object):
        pass

    assert varnames(C) == (("x",), ())
    assert varnames(D) == ((), ())
    assert varnames(E) == (("x",), ())
    assert varnames(F) == ((), ())
github pytest-dev / pluggy / testing / test_pluggy.py View on Github external
def test_varnames():
    def f(x):
        i = 3  # noqa

    class A:
        def f(self, y):
            pass

    class B(object):
        def __call__(self, z):
            pass

    assert varnames(f) == ("x",)
    assert varnames(A().f) == ('y',)
    assert varnames(B()) == ('z',)
github web-platform-tests / wpt / tools / third_party / pluggy / testing / test_helpers.py View on Github external
def test_varnames():
    def f(x):
        i = 3  # noqa

    class A(object):
        def f(self, y):
            pass

    class B(object):
        def __call__(self, z):
            pass

    assert varnames(f) == (("x",), ())
    assert varnames(A().f) == (('y',), ())
    assert varnames(B()) == (('z',), ())
github pytest-dev / pluggy / testing / test_pluggy.py View on Github external
pass

    class D:
        pass

    class E(object):
        def __init__(self, x):
            pass

    class F(object):
        pass

    assert varnames(C) == ("x",)
    assert varnames(D) == ()
    assert varnames(E) == ("x",)
    assert varnames(F) == ()
github pytest-dev / pluggy / testing / test_pluggy.py View on Github external
def test_varnames():
    def f(x):
        i = 3  # noqa

    class A:
        def f(self, y):
            pass

    class B(object):
        def __call__(self, z):
            pass

    assert varnames(f) == ("x",)
    assert varnames(A().f) == ('y',)
    assert varnames(B()) == ('z',)
github web-platform-tests / wpt / tools / third_party / pluggy / testing / test_helpers.py View on Github external
def test_varnames():
    def f(x):
        i = 3  # noqa

    class A(object):
        def f(self, y):
            pass

    class B(object):
        def __call__(self, z):
            pass

    assert varnames(f) == (("x",), ())
    assert varnames(A().f) == (('y',), ())
    assert varnames(B()) == (('z',), ())
github web-platform-tests / wpt / tools / third_party / pluggy / testing / test_helpers.py View on Github external
class C(object):
        def __init__(self, x):
            pass

    class D(object):
        pass

    class E(object):
        def __init__(self, x):
            pass

    class F(object):
        pass

    assert varnames(C) == (("x",), ())
    assert varnames(D) == ((), ())
    assert varnames(E) == (("x",), ())
    assert varnames(F) == ((), ())
github web-platform-tests / wpt / tools / third_party / pluggy / testing / test_helpers.py View on Github external
def test_varnames():
    def f(x):
        i = 3  # noqa

    class A(object):
        def f(self, y):
            pass

    class B(object):
        def __call__(self, z):
            pass

    assert varnames(f) == (("x",), ())
    assert varnames(A().f) == (('y',), ())
    assert varnames(B()) == (('z',), ())
github pytest-dev / pluggy / testing / test_pluggy.py View on Github external
def test_varnames_default():
    def f(x, y=3):
        pass

    assert varnames(f) == ("x",)