From 18ac5135b46e38aa6ae2032c1dce48526841b299 Mon Sep 17 00:00:00 2001 From: Jimmy Alejandro Tzuc Martin Date: Tue, 2 May 2023 22:02:51 -0600 Subject: [PATCH 1/3] Traducido archivo library/unittest.mock --- TRANSLATORS | 1 + library/unittest.mock.po | 17 +++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/TRANSLATORS b/TRANSLATORS index 11ed6dc63a..a8fd349911 100644 --- a/TRANSLATORS +++ b/TRANSLATORS @@ -110,6 +110,7 @@ Jaime Rodrigo González Rodríguez (@jairock282) Jaume Montané (@jaumemy) Javier Artiga Garijo (@jartigag) Javier Daza (@javierdaza) +Jimmy Tzuc (@JimmyTzuc) Jhonatan Barrera (@iam3mer) Jonathan Aguilar (@drawsoek) Jorge Luis McDonald Stevens (@jmaxter) diff --git a/library/unittest.mock.po b/library/unittest.mock.po index b8b24e3731..a51e176eaf 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -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 \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" @@ -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 "" @@ -2734,9 +2739,9 @@ msgstr "" #: ../Doc/library/unittest.mock.rst:2248 msgid "" -"``call_list`` is particularly useful for making assertions on \"chained " -"calls\". A chained call is multiple calls on a single line of code. This " -"results in multiple entries in :attr:`~Mock.mock_calls` on a mock. Manually " +"``call_list`` is particularly useful for making assertions on \"chained calls" +"\". A chained call is multiple calls on a single line of code. This results " +"in multiple entries in :attr:`~Mock.mock_calls` on a mock. Manually " "constructing the sequence of calls can be tedious." msgstr "" "``call_list`` es particularmente útil para hacer aserciones sobre \"llamadas " From a900aecebbbe8449e94de7d3a91d16f8e57be2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Tue, 23 May 2023 10:57:04 +0200 Subject: [PATCH 2/3] Arreglando entradas fuzzy y orden TRANSLATORS --- TRANSLATORS | 2 +- library/unittest.mock.po | 45 +++++++++++++++++----------------------- 2 files changed, 20 insertions(+), 27 deletions(-) diff --git a/TRANSLATORS b/TRANSLATORS index a8fd349911..1aba94dc88 100644 --- a/TRANSLATORS +++ b/TRANSLATORS @@ -110,8 +110,8 @@ Jaime Rodrigo González Rodríguez (@jairock282) Jaume Montané (@jaumemy) Javier Artiga Garijo (@jartigag) Javier Daza (@javierdaza) -Jimmy Tzuc (@JimmyTzuc) Jhonatan Barrera (@iam3mer) +Jimmy Tzuc (@JimmyTzuc) Jonathan Aguilar (@drawsoek) Jorge Luis McDonald Stevens (@jmaxter) Jorge Maldonado Ventura (@jorgesumle) diff --git a/library/unittest.mock.po b/library/unittest.mock.po index a51e176eaf..d20884687a 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -2190,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 " @@ -2199,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 `_)." +"Tanto patch_ como patch.object_ parchean y restauran correctamente los " +"descriptores: métodos de clase, métodos estáticos y propiedades. Debe " +"parchearlos en el *class* en lugar de una instancia. También funcionan con " +"objetos *some* que acceden a atributos de proxy, como `django settings " +"object `_." #: ../Doc/library/unittest.mock.rst:1951 msgid "MagicMock and magic method support" @@ -2322,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 "" @@ -2619,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 "" @@ -2739,9 +2734,9 @@ msgstr "" #: ../Doc/library/unittest.mock.rst:2248 msgid "" -"``call_list`` is particularly useful for making assertions on \"chained calls" -"\". A chained call is multiple calls on a single line of code. This results " -"in multiple entries in :attr:`~Mock.mock_calls` on a mock. Manually " +"``call_list`` is particularly useful for making assertions on \"chained " +"calls\". A chained call is multiple calls on a single line of code. This " +"results in multiple entries in :attr:`~Mock.mock_calls` on a mock. Manually " "constructing the sequence of calls can be tedious." msgstr "" "``call_list`` es particularmente útil para hacer aserciones sobre \"llamadas " @@ -2909,7 +2904,6 @@ 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 " @@ -2917,12 +2911,11 @@ msgid "" "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 From afcaa02366866668d8d5dcf3133006c2ecef407f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Tue, 23 May 2023 11:13:40 +0200 Subject: [PATCH 3/3] Missing word pospell --- dictionaries/library_unittest.mock.txt | 1 + library/unittest.mock.po | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dictionaries/library_unittest.mock.txt b/dictionaries/library_unittest.mock.txt index 2553681c09..0bc5447190 100644 --- a/dictionaries/library_unittest.mock.txt +++ b/dictionaries/library_unittest.mock.txt @@ -13,6 +13,7 @@ MagicMock mock parcheadores Parcheadores +parcharlos patch Patch preconfigurados diff --git a/library/unittest.mock.po b/library/unittest.mock.po index 0502bbed17..2b9c2e0175 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -2200,7 +2200,7 @@ msgid "" msgstr "" "Tanto patch_ como patch.object_ parchean y restauran correctamente los " "descriptores: métodos de clase, métodos estáticos y propiedades. Debe " -"parchearlos en el *class* en lugar de una instancia. También funcionan con " +"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 `_." pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy