nose-parameterized

ภาพหน้าจอของซอฟแวร์:
nose-parameterized
รายละเอียดซอฟแวร์:
รุ่น: 0.3.1
วันที่อัพโหลด: 14 Apr 15
ผู้พัฒนา: David Wolever
การอนุญาต: ฟรี
ความนิยม: 3

Rating: 3.0/5 (Total Votes: 1)

จมูก patameterized เป็นมัณฑนากรสำหรับการทดสอบแปรกับจมูก
จมูก มันมีการทดสอบเครื่องกำเนิดไฟฟ้า แต่พวกเขาชนิดของดูดเพราะ:
- พวกเขามักจะต้องมีฟังก์ชั่นที่สอง
- พวกเขาทำให้มันยากที่จะแยกข้อมูลจากการทดสอบ
- พวกเขาไม่ได้ทำงานกับ subclases ของ unittest.TestCase
แต่การแก้ไขจมูกแปรว่า
ตรวจสอบว่า:
 แมว test_math.py
จากการนำเข้า nose.tools assert_equal
จากการนำเข้า nose_parameterized แปร
นำเข้า UnitTest
คณิตศาสตร์นำเข้า
@parameterized ([
& nbsp; (2, 2, 4)
& nbsp; (2, 3, 8)
& nbsp; (1, 9, 1),
& nbsp; (0, 9, 0),
])
def test_pow (ฐานยกกำลังคาดว่า):
& nbsp; assert_equal (Math.pow (ฐานสัญลักษณ์) คาดว่า)
ชั้น TestMathUnitTest (unittest.TestCase):
& nbsp; @ parameterized.expand ([
& nbsp; (- 1.5, -2.0)
& nbsp; (1.0, 1.0)
& nbsp; (1.6, 1),
& nbsp;])
& nbsp; def test_floor (ตัวเอง, การป้อนข้อมูลคาดว่า):
& nbsp; assert_equal (Math.Floor (input) คาดว่า)
$ nosetests -v test_math.py
test_math.test_pow (2, 2, 4) ... ok
test_math.test_pow (2, 3, 8) ... ok
test_math.test_pow (1, 9, 1) ... ok
test_math.test_pow (0, 9, 0) ... ok
test_floor_0 (test_math.TestMathUnitTest) ... ok
test_floor_1 (test_math.TestMathUnitTest) ... ok
test_floor_2 (test_math.TestMathUnitTest) ... ok
-------------------------------------------------- --------------------
วิ่งทดสอบใน 7 0.002s
ตกลง

ต้องการ

  • หลาม
  • จมูก

ซอฟต์แวร์ที่คล้ายกัน

NUnit
NUnit

19 Feb 15

PyUseCase
PyUseCase

11 May 15

fakeldap
fakeldap

11 May 15

dfuzz
dfuzz

12 May 15

ความคิดเห็นที่ nose-parameterized

ความคิดเห็นที่ไม่พบ
เพิ่มความคิดเห็น
เปิดภาพ!
ค้นหาตามหมวดหมู่