बधाई हो!

Python में Testing का परिचय

Alexander Levin

Data Scientist

Chapter 1 - pytest के साथ टेस्ट बनाना

  • Testing और pytest
  • CLI: pytest test_script.py
  • Test markers

टेस्ट आउटपुट उदाहरण

Python में Testing का परिचय

Chapter 2 - Pytest fixtures

  • Fixtures का परिचय
  • Fixtures को चेन करना fixture दूसरे fixture को कॉल करता है

  • Fixtures autouse

  • Fixtures teardown
Python में Testing का परिचय

Chapter 3 - बेसिक टेस्टिंग प्रकार

  • Unit testing
  • Feature testing
  • Integration testing
  • Performance testing
Python में Testing का परिचय

Chapter 4 - unittest के साथ टेस्ट लिखना

  • unittest से परिचय
    import unittest
    class TestSquared(unittest.TestCase):
      def test_negative(self):
          self.assertEqual((-3) ** 2, 9)
    
  • Unittest CLI unittest के test_sqneg.py का आउटपुट

  • unittest में Fixtures

  • व्यावहारिक उदाहरण
Python में Testing का परिचय

बधाई हो!

Python में Testing का परिचय

Preparing Video For Download...