@@ -15,7 +15,7 @@ msgstr ""
15
15
"Project-Id-Version : Python 3.8\n "
16
16
"Report-Msgid-Bugs-To : \n "
17
17
"POT-Creation-Date : 2020-05-05 12:54+0200\n "
18
- "PO-Revision-Date : 2020-10-10 13:02 +0200\n "
18
+ "PO-Revision-Date : 2020-10-11 14:51 +0200\n "
19
19
"Language-Team : python-doc-es\n "
20
20
"MIME-Version : 1.0\n "
21
21
"Content-Type : text/plain; charset=UTF-8\n "
@@ -2607,22 +2607,31 @@ msgid ""
2607
2607
"additional methods are available to add tests to :class:`TestSuite` "
2608
2608
"instances:"
2609
2609
msgstr ""
2610
+ "Los objetos de :class:`TestSuite` se comportan de manera muy parecida a los "
2611
+ "objetos de :class:`TestCase`, excepto que no implementan un test. En "
2612
+ "cambio, se usan para agregar tests en grupos de tests que deben ser "
2613
+ "ejecutados juntos. Existen algunos métodos adicionales para agregar tests a "
2614
+ "las instancias de :class:`TestSuite`:"
2610
2615
2611
2616
#: ../Doc/library/unittest.rst:1636
2612
2617
msgid "Add a :class:`TestCase` or :class:`TestSuite` to the suite."
2613
- msgstr ""
2618
+ msgstr "Añade un :class:`TestCase` o :class:`TestSuite` al conjunto. "
2614
2619
2615
2620
#: ../Doc/library/unittest.rst:1641
2616
2621
msgid ""
2617
2622
"Add all the tests from an iterable of :class:`TestCase` and :class:"
2618
2623
"`TestSuite` instances to this test suite."
2619
2624
msgstr ""
2625
+ "Añade todos los tests de un iterable de :class:`TestCase` y :class:"
2626
+ "`TestSuite` a este conjunto de tests."
2620
2627
2621
2628
#: ../Doc/library/unittest.rst:1644
2622
2629
msgid ""
2623
2630
"This is equivalent to iterating over *tests*, calling :meth:`addTest` for "
2624
2631
"each element."
2625
2632
msgstr ""
2633
+ "Esto equivale a iterar sobre *tests*, llamando a :meth:`addTest` para cada "
2634
+ "elemento."
2626
2635
2627
2636
#: ../Doc/library/unittest.rst:1647
2628
2637
msgid ":class:`TestSuite` shares the following methods with :class:`TestCase`:"
@@ -2635,6 +2644,10 @@ msgid ""
2635
2644
"test result object passed as *result*. Note that unlike :meth:`TestCase."
2636
2645
"run`, :meth:`TestSuite.run` requires the result object to be passed in."
2637
2646
msgstr ""
2647
+ "Ejecuta los tests asociados a este conjunto, recogiendo el resultado en el "
2648
+ "objeto de resultado del test pasado como *result*. Tenga en cuenta que a "
2649
+ "diferencia de :meth:`TestCase.run`, :meth:`TestSuite.run` requiere que se "
2650
+ "pase el objeto resultado."
2638
2651
2639
2652
#: ../Doc/library/unittest.rst:1660
2640
2653
msgid ""
@@ -2645,7 +2658,7 @@ msgstr ""
2645
2658
"Ejecuta los tests asociados con este conjunto sin recoger los resultados. "
2646
2659
"Esto permite que las excepciones lanzadas por este test sean propagadas al "
2647
2660
"invocador y puedes ser usadas para apoyar tests que están ejecutándose con "
2648
- "un debugger"
2661
+ "un debugger. "
2649
2662
2650
2663
#: ../Doc/library/unittest.rst:1667
2651
2664
msgid ""
@@ -2666,26 +2679,45 @@ msgid ""
2666
2679
"tests returned by this method unless the caller uses a subclass that "
2667
2680
"overrides :meth:`TestSuite._removeTestAtIndex` to preserve test references."
2668
2681
msgstr ""
2682
+ "Los tests agrupados por una :class:`TestSuite` se acceden siempre por "
2683
+ "iteración. Las subclases pueden proporcionar tests anulando :meth:"
2684
+ "`__iter__`. Tenga en cuenta que este método puede ser invocado varias veces "
2685
+ "en un mismo conjunto (por ejemplo, cuando se cuentan los tests o se comparan "
2686
+ "por igualdad), por lo que los tests retornados por iteraciones repetidas "
2687
+ "antes de :meth:`TestSuite.run` deben ser los mismos para cada iteración de "
2688
+ "invocación. Después de :meth:`TestSuite.run`, los invocados no deben confiar "
2689
+ "en los tests retornados por este método a menos que el invocado utilice una "
2690
+ "subclase que anule :meth:`TestSuite._removeTestAtIndex` para preservar las "
2691
+ "referencias de los tests."
2669
2692
2670
2693
#: ../Doc/library/unittest.rst:1683
2671
2694
msgid ""
2672
2695
"In earlier versions the :class:`TestSuite` accessed tests directly rather "
2673
2696
"than through iteration, so overriding :meth:`__iter__` wasn't sufficient for "
2674
2697
"providing tests."
2675
2698
msgstr ""
2699
+ "En versiones anteriores la :class:`TestSuite` accedía a los test "
2700
+ "directamente en lugar de a través de la iteración, por lo que anular :meth:"
2701
+ "`__iter__` no era suficiente para proporcionar los tests."
2676
2702
2677
2703
#: ../Doc/library/unittest.rst:1688
2678
2704
msgid ""
2679
2705
"In earlier versions the :class:`TestSuite` held references to each :class:"
2680
2706
"`TestCase` after :meth:`TestSuite.run`. Subclasses can restore that behavior "
2681
2707
"by overriding :meth:`TestSuite._removeTestAtIndex`."
2682
2708
msgstr ""
2709
+ "En versiones anteriores, la :class:`TestSuite` tenía referencias a cada :"
2710
+ "class:`TestCase` después de :meth:`TestSuite.run`. Las subclases pueden "
2711
+ "restaurar ese comportamiento anulando :meth:`TestSuite._removeTestAtIndex`."
2683
2712
2684
2713
#: ../Doc/library/unittest.rst:1693
2685
2714
msgid ""
2686
2715
"In the typical usage of a :class:`TestSuite` object, the :meth:`run` method "
2687
2716
"is invoked by a :class:`TestRunner` rather than by the end-user test harness."
2688
2717
msgstr ""
2718
+ "En el uso típico de un objeto :class:`TestSuite`, el método :meth:`run` es "
2719
+ "invocado por un :class:`TestRunner` en lugar de por el marco de test de "
2720
+ "pruebas automático del usuario final."
2689
2721
2690
2722
#: ../Doc/library/unittest.rst:1698
2691
2723
msgid "Loading and running tests"
0 commit comments