Skip to content

Commit 85630b9

Browse files
committed
translated to 65%
1 parent 4524aa2 commit 85630b9

File tree

2 files changed

+89
-2
lines changed

2 files changed

+89
-2
lines changed

dictionaries/library_unittest.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
frozensets
2+
msg
13
logs
24
Dicts
35
setUpClass

library/unittest.po

+87-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgstr ""
1515
"Project-Id-Version: Python 3.8\n"
1616
"Report-Msgid-Bugs-To: \n"
1717
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
18-
"PO-Revision-Date: 2020-10-03 12:55+0200\n"
18+
"PO-Revision-Date: 2020-10-04 02:15+0200\n"
1919
"Language-Team: python-doc-es\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1531,7 +1531,7 @@ msgstr ""
15311531
#: ../Doc/library/unittest.rst:984
15321532
msgid "Added the ability to use :meth:`assertRaises` as a context manager."
15331533
msgstr ""
1534-
"Añadió la capacidad de usar :meth:`assertRaises` como gestor de contexto."
1534+
"Añadió la capacidad de usar :meth:`assertRaises`como gestor de contexto."
15351535

15361536
#: ../Doc/library/unittest.rst:987
15371537
msgid "Added the :attr:`exception` attribute."
@@ -1845,6 +1845,8 @@ msgid ""
18451845
"The method ``assertRegexpMatches()`` has been renamed to :meth:`."
18461846
"assertRegex`."
18471847
msgstr ""
1848+
"El método ``assertRegexpMatches()`` ha sido renombrado a :meth:`."
1849+
"assertRegex`."
18481850

18491851
#: ../Doc/library/unittest.rst:1208
18501852
msgid ":meth:`.assertNotRegex`."
@@ -1855,13 +1857,18 @@ msgid ""
18551857
"The name ``assertNotRegexpMatches`` is a deprecated alias for :meth:`."
18561858
"assertNotRegex`."
18571859
msgstr ""
1860+
"El nombre ``assertNotRegexpMatches`` es un alias obsoleto para :meth:`."
1861+
"assertNotRegex`."
18581862

18591863
#: ../Doc/library/unittest.rst:1217
18601864
msgid ""
18611865
"Test that sequence *first* contains the same elements as *second*, "
18621866
"regardless of their order. When they don't, an error message listing the "
18631867
"differences between the sequences will be generated."
18641868
msgstr ""
1869+
"Testea que la secuencia *first* contiene los mismos elementos que *second*, "
1870+
"independientemente de su orden. Cuando no lo hagan, se generará un mensaje "
1871+
"de error con las diferencias entre las secuencias."
18651872

18661873
#: ../Doc/library/unittest.rst:1221
18671874
msgid ""
@@ -1870,6 +1877,11 @@ msgid ""
18701877
"Equivalent to: ``assertEqual(Counter(list(first)), Counter(list(second)))`` "
18711878
"but works with sequences of unhashable objects as well."
18721879
msgstr ""
1880+
"Los elementos duplicados *no* son ignorados cuando se comparan *first* y "
1881+
"*second*. Verifica si cada elemento tiene la misma cuenta en ambas "
1882+
"secuencias. Equivalente a: ``assertEqual(Counter(list(first)), "
1883+
"Counter(list(second)))`` pero funciona también con secuencias de objetos que "
1884+
"no son hashable."
18731885

18741886
#: ../Doc/library/unittest.rst:1232
18751887
msgid ""
@@ -1878,6 +1890,11 @@ msgid ""
18781890
"implemented for most of the built-in types, but it's also possible to "
18791891
"register new methods using :meth:`addTypeEqualityFunc`:"
18801892
msgstr ""
1893+
"El método :meth:`assertEqual` envía la comprobación de igualdad de los "
1894+
"objetos del mismo tipo a diferentes métodos específicos de tipo. Estos "
1895+
"métodos ya están implementados para la mayoría de los tipos incorporados, "
1896+
"pero también es posible registrar nuevos métodos usando :meth:"
1897+
"`addTypeEqualityFunc`:"
18811898

18821899
#: ../Doc/library/unittest.rst:1239
18831900
msgid ""
@@ -1889,13 +1906,24 @@ msgid ""
18891906
"two parameters is detected -- possibly providing useful information and "
18901907
"explaining the inequalities in details in the error message."
18911908
msgstr ""
1909+
"Registra un método específico de tipo llamado por :meth:`assertEqual` para "
1910+
"comprobar si dos objetos del mismo *typeobj* (no subclases) comparan como "
1911+
"iguales. *function* debe tomar dos argumentos posicionales y un tercer "
1912+
"argumento de palabra clave msg=None tal y como lo hace :meth:`assertEqual`. "
1913+
"Debe lanzar :data:`self.failureException(msg) <failureException>` cuando "
1914+
"se detecta una desigualdad entre los dos primeros parámetros, posiblemente "
1915+
"proporcionando información útil y explicando las desigualdades en detalle en "
1916+
"el mensaje de error."
18921917

18931918
#: ../Doc/library/unittest.rst:1250
18941919
msgid ""
18951920
"The list of type-specific methods automatically used by :meth:`~TestCase."
18961921
"assertEqual` are summarized in the following table. Note that it's usually "
18971922
"not necessary to invoke these methods directly."
18981923
msgstr ""
1924+
"La lista de métodos específicos de tipo utilizados automáticamente por :meth:"
1925+
"`~TestCase.assertEqual` se resumen en la siguiente tabla. Tenga en cuenta "
1926+
"que normalmente no es necesario invocar estos métodos directamente."
18991927

19001928
#: ../Doc/library/unittest.rst:1255
19011929
msgid "Used to compare"
@@ -1956,6 +1984,10 @@ msgid ""
19561984
"included in the error message. This method is used by default when comparing "
19571985
"strings with :meth:`assertEqual`."
19581986
msgstr ""
1987+
"Testea que la cadena multilínea *first* es igual a la cadena *second*. "
1988+
"Cuando no sea igual, una diferencia de las dos cadenas que resalte las "
1989+
"diferencias se incluirá en el mensaje de error. Este método se utiliza por "
1990+
"defecto cuando se comparan cadenas con :meth:`assertEqual`."
19591991

19601992
#: ../Doc/library/unittest.rst:1290
19611993
msgid ""
@@ -1964,12 +1996,18 @@ msgid ""
19641996
"raised. If the sequences are different an error message is constructed that "
19651997
"shows the difference between the two."
19661998
msgstr ""
1999+
"Testea que dos secuencias son iguales. Si se suministra un *seq_type*, "
2000+
"tanto *first* como *second* deben ser instancias de *seq_type* o se lanzará "
2001+
"un fallo. Si las secuencias son diferentes se construye un mensaje de error "
2002+
"que muestra la diferencia entre las dos."
19672003

19682004
#: ../Doc/library/unittest.rst:1295
19692005
msgid ""
19702006
"This method is not called directly by :meth:`assertEqual`, but it's used to "
19712007
"implement :meth:`assertListEqual` and :meth:`assertTupleEqual`."
19722008
msgstr ""
2009+
"Este método no es llamado directamente por :meth:`assertEqual`, pero se usa "
2010+
"para implementar :meth:`assertListEqual` y :meth:`assertTupleEqual`."
19732011

19742012
#: ../Doc/library/unittest.rst:1305
19752013
msgid ""
@@ -1978,37 +2016,55 @@ msgid ""
19782016
"also raised if either of the parameters are of the wrong type. These methods "
19792017
"are used by default when comparing lists or tuples with :meth:`assertEqual`."
19802018
msgstr ""
2019+
"Testea que dos listas o tuplas son iguales. Si no es así, se construye un "
2020+
"mensaje de error que muestra sólo las diferencias entre las dos. También se "
2021+
"lanza un error si alguno de los parámetros es del tipo equivocado. Estos "
2022+
"métodos se utilizan por defecto cuando se comparan listas o tuplas con :meth:"
2023+
"`assertEqual`."
19812024

19822025
#: ../Doc/library/unittest.rst:1316
19832026
msgid ""
19842027
"Tests that two sets are equal. If not, an error message is constructed that "
19852028
"lists the differences between the sets. This method is used by default when "
19862029
"comparing sets or frozensets with :meth:`assertEqual`."
19872030
msgstr ""
2031+
"Testea que dos conjuntos son iguales. Si no es así, se construye un mensaje "
2032+
"de error que enumera las diferencias entre los conjuntos. Este método se "
2033+
"utiliza por defecto cuando se comparan los sets o frozensets con :meth:"
2034+
"`assertEqual`."
19882035

19892036
#: ../Doc/library/unittest.rst:1320
19902037
msgid ""
19912038
"Fails if either of *first* or *second* does not have a :meth:`set."
19922039
"difference` method."
19932040
msgstr ""
2041+
"Falla si cualquiera de *first* o *second* no tiene un método de :meth:`set."
2042+
"difference`."
19942043

19952044
#: ../Doc/library/unittest.rst:1328
19962045
msgid ""
19972046
"Test that two dictionaries are equal. If not, an error message is "
19982047
"constructed that shows the differences in the dictionaries. This method will "
19992048
"be used by default to compare dictionaries in calls to :meth:`assertEqual`."
20002049
msgstr ""
2050+
"Testea que dos diccionarios son iguales. Si no es así, se construye un "
2051+
"mensaje de error que muestra las diferencias en los diccionarios. Este "
2052+
"método se usará por defecto para comparar los diccionarios en las llamadas "
2053+
"a :meth:`assertEqual`."
20012054

20022055
#: ../Doc/library/unittest.rst:1339
20032056
msgid ""
20042057
"Finally the :class:`TestCase` provides the following methods and attributes:"
20052058
msgstr ""
2059+
"Finalmente, :class:`TestCase` proporciona los siguientes métodos y atributos:"
20062060

20072061
#: ../Doc/library/unittest.rst:1344
20082062
msgid ""
20092063
"Signals a test failure unconditionally, with *msg* or ``None`` for the error "
20102064
"message."
20112065
msgstr ""
2066+
"Señala un fallo del test incondicionalmente, con *msg* o ``None`` para el "
2067+
"mensaje de error."
20122068

20132069
#: ../Doc/library/unittest.rst:1350
20142070
msgid ""
@@ -2018,6 +2074,11 @@ msgid ""
20182074
"fair\" with the framework. The initial value of this attribute is :exc:"
20192075
"`AssertionError`."
20202076
msgstr ""
2077+
"Este atributo de clase da la excepción lanzada por el método de test. Si un "
2078+
"marco de pruebas necesita utilizar una excepción especializada, posiblemente "
2079+
"para llevar información adicional, debe subclasificar esta excepción para "
2080+
"\"jugar limpio\" con el marco. El valor inicial de este atributo es :exc:"
2081+
"`AssertionError`."
20212082

20222083
#: ../Doc/library/unittest.rst:1359
20232084
msgid ""
@@ -2027,17 +2088,26 @@ msgid ""
20272088
"of the standard failure message. When set to ``False``, the custom message "
20282089
"replaces the standard message."
20292090
msgstr ""
2091+
"Este atributo de clase determina lo que ocurre cuando se pasa un mensaje de "
2092+
"fallo personalizado como el argumento msg a una llamada assertXYY que falla. "
2093+
"``True`` es el valor por defecto. En este caso, el mensaje personalizado se "
2094+
"añade al final del mensaje de fallo estándar. Cuando se establece en "
2095+
"``False``, el mensaje personalizado reemplaza al mensaje estándar."
20302096

20312097
#: ../Doc/library/unittest.rst:1365
20322098
msgid ""
20332099
"The class setting can be overridden in individual test methods by assigning "
20342100
"an instance attribute, self.longMessage, to ``True`` or ``False`` before "
20352101
"calling the assert methods."
20362102
msgstr ""
2103+
"La configuración de la clase puede ser anulada en los métodos de test "
2104+
"individuales asignando un atributo de instancia, self.longMessage, a "
2105+
"``True`` o ``False`` antes de llamar a los métodos assert."
20372106

20382107
#: ../Doc/library/unittest.rst:1369
20392108
msgid "The class setting gets reset before each test call."
20402109
msgstr ""
2110+
"La configuración de la clase se reajusta antes de cada llamada de test."
20412111

20422112
#: ../Doc/library/unittest.rst:1376
20432113
msgid ""
@@ -2047,31 +2117,46 @@ msgid ""
20472117
"the sequence comparison methods that delegate to it), :meth:"
20482118
"`assertDictEqual` and :meth:`assertMultiLineEqual`."
20492119
msgstr ""
2120+
"Este atributo controla la longitud máxima de las diferencias de salida de "
2121+
"métodos assert que reportan diferencias en caso de fallo. El valor "
2122+
"predeterminado es de 80*8 caracteres. Los métodos assert afectados por este "
2123+
"atributo son :meth:`assertSequenceEqual` (incluyendo todos los métodos de "
2124+
"comparación de secuencias que le delegan), :meth:`assertDictEqual` y :meth:"
2125+
"`assertMultiLineEqual`."
20502126

20512127
#: ../Doc/library/unittest.rst:1383
20522128
msgid ""
20532129
"Setting ``maxDiff`` to ``None`` means that there is no maximum length of "
20542130
"diffs."
20552131
msgstr ""
2132+
"Poner ``maxDiff`` en ``None`` significa que no hay una longitud máxima de "
2133+
"diferencias."
20562134

20572135
#: ../Doc/library/unittest.rst:1389
20582136
msgid ""
20592137
"Testing frameworks can use the following methods to collect information on "
20602138
"the test:"
20612139
msgstr ""
2140+
"Los marcos de test pueden utilizar los siguientes métodos para reunir "
2141+
"información sobre el test:"
20622142

20632143
#: ../Doc/library/unittest.rst:1395
20642144
msgid ""
20652145
"Return the number of tests represented by this test object. For :class:"
20662146
"`TestCase` instances, this will always be ``1``."
20672147
msgstr ""
2148+
"Retorna el número de tests representados por este objeto de test. Para las "
2149+
"instancias de :class:`TestCase`, este siempre será ``1``."
20682150

20692151
#: ../Doc/library/unittest.rst:1401
20702152
msgid ""
20712153
"Return an instance of the test result class that should be used for this "
20722154
"test case class (if no other result instance is provided to the :meth:`run` "
20732155
"method)."
20742156
msgstr ""
2157+
"Retorna una instancia de la clase de resultado de test que debería "
2158+
"utilizarse para esta clase de caso de test (si no se proporciona otra "
2159+
"instancia de resultado al método :meth:`run` )."
20752160

20762161
#: ../Doc/library/unittest.rst:1405
20772162
msgid ""

0 commit comments

Comments
 (0)