Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Traducido archivo library/unittest.mock #2374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions TRANSLATORS
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Jaume Montané (@jaumemy)
Javier Artiga Garijo (@jartigag)
Javier Daza (@javierdaza)
Jhonatan Barrera (@iam3mer)
Jimmy Tzuc (@JimmyTzuc)
Jonathan Aguilar (@drawsoek)
Jorge Luis McDonald Stevens (@jmaxter)
Jorge Maldonado Ventura (@jorgesumle)
Expand Down
1 change: 1 addition & 0 deletions dictionaries/library_unittest.mock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ MagicMock
mock
parcheadores
Parcheadores
parcharlos
patch
Patch
preconfigurados
Expand Down
50 changes: 24 additions & 26 deletions library/unittest.mock.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
"PO-Revision-Date: 2021-10-29 22:00-0500\n"
"PO-Revision-Date: 2023-05-02 21:52-0600\n"
"Last-Translator: Pedro Aarón <[email protected]>\n"
"Language: es\n"
"Language-Team: python-doc-es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.10.3\n"
"X-Generator: Poedit 3.2.2\n"

#: ../Doc/library/unittest.mock.rst:3
msgid ":mod:`unittest.mock` --- mock object library"
Expand Down Expand Up @@ -386,6 +387,10 @@ msgid ""
"`AttributeError`. Passing ``unsafe=True`` will allow access to these "
"attributes."
msgstr ""
"*unsafe*: Por defecto, el acceso a cualquier atributo cuyo nombre comience "
"por *assert*, *assret*, *asert*, *aseert* o *assrt* generará un error :exc:"
"`AttributeError`. Si se pasa ``unsafe=True`` se permitirá el acceso a estos "
"atributos."

#: ../Doc/library/unittest.mock.rst:272
msgid ""
Expand Down Expand Up @@ -2185,7 +2190,6 @@ msgid "Patching Descriptors and Proxy Objects"
msgstr "Parcheando descriptores y objetos proxy"

#: ../Doc/library/unittest.mock.rst:1943
#, fuzzy
msgid ""
"Both patch_ and patch.object_ correctly patch and restore descriptors: class "
"methods, static methods and properties. You should patch these on the "
Expand All @@ -2194,13 +2198,12 @@ msgid ""
"archive.org/web/20200603181648/http://www.voidspace.org.uk/python/weblog/"
"arch_d7_2010_12_04.shtml#e1198>`_."
msgstr ""
"Tanto patch_ como patch.object_ parchean descriptores correctamente y los "
"restauran posteriormente: métodos de clase, métodos estáticos y propiedades. "
"Los descriptores deben ser parcheados en la *clase* y no en una instancia. "
"También funcionan con *algunos* objetos que actúan como proxy en el acceso a "
"atributos, como el objeto de configuraciones de django (`django settings "
"object <http://www.voidspace.org.uk/python/weblog/arch_d7_2010_12_04."
"shtml#e1198>`_)."
"Tanto patch_ como patch.object_ parchean y restauran correctamente los "
"descriptores: métodos de clase, métodos estáticos y propiedades. Debe "
"parcharlos en el *class* en lugar de una instancia. También funcionan con "
"objetos *some* que acceden a atributos de proxy, como `django settings "
"object <https://web.archive.org/web/20200603181648/http://www.voidspace.org."
"uk/python/weblog/arch_d7_2010_12_04.shtml#e1198>`_."

#: ../Doc/library/unittest.mock.rst:1951
msgid "MagicMock and magic method support"
Expand Down Expand Up @@ -2317,18 +2320,16 @@ msgid "Unary numeric methods: ``__neg__``, ``__pos__`` and ``__invert__``"
msgstr "Métodos numéricos unarios: ``__neg__``, ``__pos__`` y ``__invert__``"

#: ../Doc/library/unittest.mock.rst:2022
#, fuzzy
msgid ""
"The numeric methods (including right hand and in-place variants): "
"``__add__``, ``__sub__``, ``__mul__``, ``__matmul__``, ``__truediv__``, "
"``__floordiv__``, ``__mod__``, ``__divmod__``, ``__lshift__``, "
"``__rshift__``, ``__and__``, ``__xor__``, ``__or__``, and ``__pow__``"
msgstr ""
"Los métodos numéricos (incluyendo los métodos estándar y las variantes in-"
"place): ``__add__``, ``__sub__``, ``__mul__``, ``__matmul__``, ``__div__``, "
"``__truediv__``, ``__floordiv__``, ``__mod__``, ``__divmod__``, "
"``__lshift__``, ``__rshift__``, ``__and__``, ``__xor__``, ``__or__``, y "
"``__pow__``"
"Los métodos numéricos (incluidas las variantes de mano derecha e in situ): "
"``__add__``, ``__sub__``, ``__mul__``, ``__matmul__``, ``__truediv__``, "
"``__floordiv__``, ``__mod__``, ``__divmod__``, ``__lshift__``, "
"``__rshift__``, ``__and__``, ``__xor__``, ``__or__`` y ``__pow__``"

#: ../Doc/library/unittest.mock.rst:2026
msgid ""
Expand Down Expand Up @@ -2614,9 +2615,8 @@ msgstr ""
"``__getstate__`` y ``__setstate__``"

#: ../Doc/library/unittest.mock.rst:2168
#, fuzzy
msgid "``__getformat__``"
msgstr "``__format__``"
msgstr "``__getformat__``"

#: ../Doc/library/unittest.mock.rst:2172
msgid ""
Expand Down Expand Up @@ -2904,20 +2904,18 @@ msgid "FILTER_DIR"
msgstr "FILTER_DIR"

#: ../Doc/library/unittest.mock.rst:2383
#, fuzzy
msgid ""
":data:`FILTER_DIR` is a module level variable that controls the way mock "
"objects respond to :func:`dir`. The default is ``True``, which uses the "
"filtering described below, to only show useful members. If you dislike this "
"filtering, or need to switch it off for diagnostic purposes, then set ``mock."
"FILTER_DIR = False``."
msgstr ""
":data:`FILTER_DIR` es una variable definida a nivel de módulo que controla "
"la forma en la que los objetos simulados responden a :func:`dir` (solo para "
"Python 2.6 y en adelante). El valor predeterminado es ``True``, que utiliza "
"el filtrado descrito a continuación, con la finalidad de mostrar solo los "
"miembros considerados como útiles. Si no te gusta este filtrado, o necesitas "
"desactivarlo con fines de diagnóstico, simplemente establece ``mock."
":data:`FILTER_DIR` es una variable de nivel de módulo que controla la forma "
"en que los objetos simulados responden a :func:`dir`. El valor "
"predeterminado es ``True``, que utiliza el filtrado que se describe a "
"continuación para mostrar solo los miembros útiles. Si no le gusta este "
"filtrado o necesita desactivarlo con fines de diagnóstico, configure ``mock."
"FILTER_DIR = False``."

#: ../Doc/library/unittest.mock.rst:2389
Expand Down