Skip to content

Commit a1e95f7

Browse files
committed
progress to 35%
1 parent b3f0bbd commit a1e95f7

File tree

2 files changed

+58
-19
lines changed

2 files changed

+58
-19
lines changed

dictionaries/library_unittest.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
subtests
2+
unittest
3+
reimplementar
4+
subtest
15
TestCase
26
Unittest
37
tests

library/unittest.po

Lines changed: 54 additions & 19 deletions
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-08-26 12:30+0200\n"
18+
"PO-Revision-Date: 2020-08-28 14:54+0200\n"
1919
"Language-Team: python-doc-es\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -963,6 +963,8 @@ msgid ""
963963
"Usually you can use :meth:`TestCase.skipTest` or one of the skipping "
964964
"decorators instead of raising this directly."
965965
msgstr ""
966+
"Normalmente puedes usar directamente :meth:`TestCase.skipTest` o uno de los "
967+
"decoradores de omisión en vez de lanzar esta excepción."
966968

967969
#: ../Doc/library/unittest.rst:606
968970
msgid ""
@@ -971,44 +973,54 @@ msgid ""
971973
"setUpClass` or :meth:`~TestCase.tearDownClass` run. Skipped modules will not "
972974
"have :func:`setUpModule` or :func:`tearDownModule` run."
973975
msgstr ""
976+
"Los tests omitidos no ejecutarán :meth:`~TestCase.setUp` o :meth:`~TestCase."
977+
"tearDown`. Las clases omitidas no ejecutarán :meth:`~TestCase.setUpClass` o :"
978+
"meth:`~TestCase.tearDownClass`. Los módulos omitidos no ejecutarán :func:"
979+
"`setUpModule` o :func:`tearDownModule`."
974980

975981
#: ../Doc/library/unittest.rst:614
976982
msgid "Distinguishing test iterations using subtests"
977-
msgstr ""
983+
msgstr "Distinguiendo iteraciones de tests empleando subtests."
978984

979985
#: ../Doc/library/unittest.rst:618
980986
msgid ""
981987
"When there are very small differences among your tests, for instance some "
982988
"parameters, unittest allows you to distinguish them inside the body of a "
983989
"test method using the :meth:`~TestCase.subTest` context manager."
984990
msgstr ""
991+
"Cuando hay diferencias muy pequeñas entre tus tests, por ejemplo algunos "
992+
"parámetros, unittest te permite distinguirlos dentro del cuerpo de un método "
993+
"de test empleando el administrador de contexto :meth:`~TestCase.subTest` ."
985994

986995
#: ../Doc/library/unittest.rst:622
987996
msgid "For example, the following test::"
988-
msgstr "Por ejemplo, la siguiente prueba::"
997+
msgstr "Por ejemplo, el siguiente test::"
989998

990999
#: ../Doc/library/unittest.rst:634
9911000
msgid "will produce the following output::"
992-
msgstr ""
1001+
msgstr "producirá la siguiente salida:"
9931002

9941003
#: ../Doc/library/unittest.rst:660
9951004
msgid ""
9961005
"Without using a subtest, execution would stop after the first failure, and "
9971006
"the error would be less easy to diagnose because the value of ``i`` wouldn't "
9981007
"be displayed::"
9991008
msgstr ""
1009+
"Sin usar un subtest, la ejecución se pararía después del primer fallo, y el "
1010+
"error sería más difícil de diagnosticar porque el valor de ``i`` no se "
1011+
"mostraría."
10001012

10011013
#: ../Doc/library/unittest.rst:676
10021014
msgid "Classes and functions"
1003-
msgstr ""
1015+
msgstr "Clases y funciones"
10041016

10051017
#: ../Doc/library/unittest.rst:678
10061018
msgid "This section describes in depth the API of :mod:`unittest`."
1007-
msgstr ""
1019+
msgstr "Esta sección describe en detalle la API de :mod:`unittest`."
10081020

10091021
#: ../Doc/library/unittest.rst:684
10101022
msgid "Test cases"
1011-
msgstr ""
1023+
msgstr "Casos de test"
10121024

10131025
#: ../Doc/library/unittest.rst:688
10141026
msgid ""
@@ -1019,20 +1031,34 @@ msgid ""
10191031
"drive the tests, and methods that the test code can use to check for and "
10201032
"report various kinds of failure."
10211033
msgstr ""
1034+
"Las instancias de la clase :class:`TestCase` representan las unidades "
1035+
"lógicas de test en el universo de :mod:`unittest`. Esta clase está pensada "
1036+
"para ser utilizada como clase base, con los test específicos siendo "
1037+
"implementados por subclases concretas. Esta clase implementa la interfaz que "
1038+
"necesita el ejecutor de tests para permitirle llevar a cabo los tests, y "
1039+
"métodos que el código de test puede utilizar para chequear y reportar "
1040+
"distintos tipos de fallo."
10221041

10231042
#: ../Doc/library/unittest.rst:695
10241043
msgid ""
10251044
"Each instance of :class:`TestCase` will run a single base method: the method "
10261045
"named *methodName*. In most uses of :class:`TestCase`, you will neither "
10271046
"change the *methodName* nor reimplement the default ``runTest()`` method."
10281047
msgstr ""
1048+
"Cada instancia de :class:`TestCase` ejecutará un solo método base: el "
1049+
"método llamado *methodName*. En la mayoría de usos de :class:`TestCase`, no "
1050+
"tendrás que cambiar el *methodName* ni reimplementar el método por defecto "
1051+
"``runTest()``."
10291052

10301053
#: ../Doc/library/unittest.rst:700
10311054
msgid ""
10321055
":class:`TestCase` can be instantiated successfully without providing a "
10331056
"*methodName*. This makes it easier to experiment with :class:`TestCase` from "
10341057
"the interactive interpreter."
10351058
msgstr ""
1059+
":class:`TestCase` puede instancias con éxito sin dar un *methodName*. Esto "
1060+
"permite experimentar de manera sencilla con :class:`TestCase` en el "
1061+
"intérprete interactivo."
10361062

10371063
#: ../Doc/library/unittest.rst:705
10381064
msgid ""
@@ -1041,10 +1067,14 @@ msgid ""
10411067
"and report failures, and some inquiry methods allowing information about the "
10421068
"test itself to be gathered."
10431069
msgstr ""
1070+
"Las instancias de :class:`TestCase` proveen tres grupos de métodos: un "
1071+
"grupo empleado para ejecutar el test, otro usado para que la implementación "
1072+
"del test chequee condiciones y reporte fallos, y algunos métodos de "
1073+
"indagación que permiten recopilar información sobre el test en si mismo."
10441074

10451075
#: ../Doc/library/unittest.rst:710
10461076
msgid "Methods in the first group (running the test) are:"
1047-
msgstr ""
1077+
msgstr "Los métodos en el primer grupo (ejecutando el test) son:"
10481078

10491079
#: ../Doc/library/unittest.rst:714
10501080
msgid ""
@@ -1053,6 +1083,11 @@ msgid ""
10531083
"`SkipTest`, any exception raised by this method will be considered an error "
10541084
"rather than a test failure. The default implementation does nothing."
10551085
msgstr ""
1086+
"Método llamado para preparar el banco de test. Es invocado inmediatamente "
1087+
"antes de llamar al método de test; cualquier excepción lanzada por este "
1088+
"método que no sea :exc:`AssertionError` o :exc:`SkipTest` será considerada "
1089+
"un error en vez de un fallo del test. La implementación por defecto no hace "
1090+
"nada."
10561091

10571092
#: ../Doc/library/unittest.rst:722
10581093
msgid ""
@@ -1144,17 +1179,17 @@ msgstr ""
11441179
#: ../Doc/library/unittest.rst:814 ../Doc/library/unittest.rst:936
11451180
#: ../Doc/library/unittest.rst:1128 ../Doc/library/unittest.rst:1255
11461181
msgid "Method"
1147-
msgstr ""
1182+
msgstr "Método"
11481183

11491184
#: ../Doc/library/unittest.rst:814 ../Doc/library/unittest.rst:936
11501185
#: ../Doc/library/unittest.rst:1128
11511186
msgid "Checks that"
1152-
msgstr ""
1187+
msgstr "Comprueba que"
11531188

11541189
#: ../Doc/library/unittest.rst:814 ../Doc/library/unittest.rst:936
11551190
#: ../Doc/library/unittest.rst:1128 ../Doc/library/unittest.rst:1255
11561191
msgid "New in"
1157-
msgstr ""
1192+
msgstr "Nuevo en"
11581193

11591194
#: ../Doc/library/unittest.rst:816
11601195
msgid ":meth:`assertEqual(a, b) <TestCase.assertEqual>`"
@@ -1190,11 +1225,11 @@ msgstr "``bool(x) is False``"
11901225

11911226
#: ../Doc/library/unittest.rst:828
11921227
msgid ":meth:`assertIs(a, b) <TestCase.assertIs>`"
1193-
msgstr ""
1228+
msgstr ":meth:`assertIs(a, b) <TestCase.assertIs>`"
11941229

11951230
#: ../Doc/library/unittest.rst:828
11961231
msgid "``a is b``"
1197-
msgstr ""
1232+
msgstr "``a is b``"
11981233

11991234
#: ../Doc/library/unittest.rst:828 ../Doc/library/unittest.rst:831
12001235
#: ../Doc/library/unittest.rst:834 ../Doc/library/unittest.rst:837
@@ -1206,27 +1241,27 @@ msgstr ""
12061241
#: ../Doc/library/unittest.rst:1263 ../Doc/library/unittest.rst:1266
12071242
#: ../Doc/library/unittest.rst:1269 ../Doc/library/unittest.rst:1272
12081243
msgid "3.1"
1209-
msgstr ""
1244+
msgstr "3.1"
12101245

12111246
#: ../Doc/library/unittest.rst:831
12121247
msgid ":meth:`assertIsNot(a, b) <TestCase.assertIsNot>`"
1213-
msgstr ""
1248+
msgstr ":meth:`assertIsNot(a, b) <TestCase.assertIsNot>`"
12141249

12151250
#: ../Doc/library/unittest.rst:831
12161251
msgid "``a is not b``"
1217-
msgstr ""
1252+
msgstr "``a is not b``"
12181253

12191254
#: ../Doc/library/unittest.rst:834
12201255
msgid ":meth:`assertIsNone(x) <TestCase.assertIsNone>`"
1221-
msgstr ""
1256+
msgstr ":meth:`assertIsNone(x) <TestCase.assertIsNone>`"
12221257

12231258
#: ../Doc/library/unittest.rst:834
12241259
msgid "``x is None``"
1225-
msgstr ""
1260+
msgstr "``x is None``"
12261261

12271262
#: ../Doc/library/unittest.rst:837
12281263
msgid ":meth:`assertIsNotNone(x) <TestCase.assertIsNotNone>`"
1229-
msgstr ""
1264+
msgstr ":meth:`assertIsNotNone(x) <TestCase.assertIsNotNone>`"
12301265

12311266
#: ../Doc/library/unittest.rst:837
12321267
msgid "``x is not None``"

0 commit comments

Comments
 (0)