ParamUnittest

Sagteware kiekie:
ParamUnittest
Sagteware besonderhede:
Weergawe: 0.2
Upload datum: 20 Feb 15
Ontwikkelaar: Enrico Franchi
Lisensie: Gratis
Populariteit: 2

Rating: 5.0/5 (Total Votes: 1)

ParamUnittest is 'n Python instrument is ontwerp om die skepping van parametrized eenheid toetse staat van die werk met die amptelike unittest Python pakket te laat.
Voorbeelde:
invoer unittest
invoer paramunittest
@ Paramunittest.parametrized (
& Nbsp; ('1', '2'),
& Nbsp; # (4, 3),
& Nbsp; ('2', '3'),
& Nbsp; (('4',), {b en: '5'}),
& Nbsp; ((), {'a': 5, 'b': 6}),
& Nbsp; {'a': 5, 'b': 6},
)
klas TestFoo (paramunittest.ParametrizedTestCase):
& Nbsp; def setParameters (self, a, b):
& Nbsp; self.a = n
& Nbsp; self.b = b
& Nbsp; def testLess (self):
& Nbsp; self.assertLess (self.a, self.b)
@ Paramunittest.parametrized (
& Nbsp; ('1', '2'),
& Nbsp; # (4, 3),
& Nbsp; ('2', '3'),
& Nbsp; (('4',), {b en: '5'}),
& Nbsp; ((), {'a': 5, 'b': 6}),
& Nbsp; {'a': 5, 'b': 6},
)
klas TestBar (unittest.TestCase):
& Nbsp; def setParameters (self, a, b):
& Nbsp; self.a = n
& Nbsp; self.b = b
& Nbsp; def testLess (self):
& Nbsp; self.assertLess (self.a, self.b)

Vereistes :

  • Python

Soortgelyke sagteware

nose-bleed
nose-bleed

14 Apr 15

mock_helpers
mock_helpers

14 Apr 15

nose-cov
nose-cov

20 Feb 15

EXQUIRES
EXQUIRES

20 Feb 15

Kommentaar te ParamUnittest

Kommentaar nie gevind
Kommentaar te lewer
Draai op die foto!