Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit75d095b

Browse files
Traducido archivo library/unittest.mock (#2374)
Closes#1966---------Co-authored-by: Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>Co-authored-by: Cristián Maureira-Fredes <cmaureir@users.noreply.github.com>
1 parenta96ee14 commit75d095b

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

‎TRANSLATORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ Jaume Montané (@jaumemy)
112112
Javier Artiga Garijo (@jartigag)
113113
Javier Daza (@javierdaza)
114114
Jhonatan Barrera (@iam3mer)
115+
Jimmy Tzuc (@JimmyTzuc)
115116
Jonathan Aguilar (@drawsoek)
116117
Jorge Luis McDonald Stevens (@jmaxter)
117118
Jorge Maldonado Ventura (@jorgesumle)

‎dictionaries/library_unittest.mock.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ MagicMock
1313
mock
1414
parcheadores
1515
Parcheadores
16+
parcharlos
1617
patch
1718
Patch
1819
preconfigurados

‎library/unittest.mock.po

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ msgstr ""
1111
"Project-Id-Version:Python 3.8\n"
1212
"Report-Msgid-Bugs-To:\n"
1313
"POT-Creation-Date:2022-10-25 19:47+0200\n"
14-
"PO-Revision-Date:2021-10-29 22:00-0500\n"
14+
"PO-Revision-Date:2023-05-02 21:52-0600\n"
1515
"Last-Translator:Pedro Aarón <p.luis.aaron@gmail.com>\n"
16-
"Language:es\n"
1716
"Language-Team:python-doc-es\n"
18-
"Plural-Forms:nplurals=2; plural=(n != 1);\n"
17+
"Language:es\n"
1918
"MIME-Version:1.0\n"
2019
"Content-Type:text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding:8bit\n"
21+
"Plural-Forms:nplurals=2; plural=(n != 1);\n"
2222
"Generated-By:Babel 2.10.3\n"
23+
"X-Generator:Poedit 3.2.2\n"
2324

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

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

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

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

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

23332334
#:../Doc/library/unittest.mock.rst:2026
23342335
msgid""
@@ -2614,9 +2615,8 @@ msgstr ""
26142615
"``__getstate__`` y ``__setstate__``"
26152616

26162617
#:../Doc/library/unittest.mock.rst:2168
2617-
#,fuzzy
26182618
msgid"``__getformat__``"
2619-
msgstr"``__format__``"
2619+
msgstr"``__getformat__``"
26202620

26212621
#:../Doc/library/unittest.mock.rst:2172
26222622
msgid""
@@ -2904,20 +2904,18 @@ msgid "FILTER_DIR"
29042904
msgstr"FILTER_DIR"
29052905

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

29232921
#:../Doc/library/unittest.mock.rst:2389

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp