def test_providers_arent_called_for_dependencies_that_are_already_provided():
    def configure(binder):
        binder.bind(int, to=lambda: 0 / 1)

    class A(object):
        @inject(i=int)
        def __init__(self, i):
            pass

    injector = Injector(configure)
    builder = injector.get(AssistedBuilder(A))

    with pytest.raises(ZeroDivisionError):
        builder.build()

    builder.build(i=3)
dataset/ETHPy150Open alecthomas/injector/injector_test.py/test_providers_arent_called_for_dependencies_that_are_already_provided/swapped operands of `/`