Tebrikler!

Python'da Teste Giriş

Alexander Levin

Data Scientist

Bölüm 1 - pytest ile test yazma

  • Test etme ve pytest
  • CLI: pytest test_script.py
  • Test işaretleyicileri

test çıktısı örneği

Python'da Teste Giriş

Bölüm 2 - Pytest fixture’ları

  • Fixture’lara giriş
  • Bağımlı fixture istekleri fixture başka bir fixture’ı çağırıyor

  • Otomatik fixture’lar (autouse)

  • Fixture teardown
Python'da Teste Giriş

Bölüm 3 - Temel test türleri

  • Birim testi
  • Özellik testi
  • Entegrasyon testi
  • Performans testi
Python'da Teste Giriş

Bölüm 4 - unittest ile test yazma

  • unittest ile tanışma
    import unittest
    class TestSquared(unittest.TestCase):
      def test_negative(self):
          self.assertEqual((-3) ** 2, 9)
    
  • unittest CLI unittest test_sqneg.py çıktısı

  • unittest’te fixture’lar

  • Uygulamalı örnekler
Python'da Teste Giriş

Tebrikler!

Python'da Teste Giriş

Preparing Video For Download...