[Python] What is spec and spec_set

Discussão em 'Python' iniciado por Stack, Janeiro 26, 2025.

  1. Stack

    Stack Membro Participativo

    I am using Mock 1.0.1 Python. In the path function definition there are two optional arguments names spec and spec_set (also auto_spec)

    patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs)


    I have read through the documentation, but find no explanation of them. Maybe they are terms of testing?

    Continue reading...

Compartilhe esta Página