Forcing unittest to function [eng]

Презентація доповіді

Python comes with a built-in unittest testing framework, but even small projects avoid it, because of a fatal flaw: instead of supporting simple and Pythonic test functions, it forces callers to write tests as awkward class methods. But Python is a dynamic language! Shouldn’t we be the ones making the rules? In the talk, we’ll figure out how to use Python’s powers of introspection to detect test functions and successfully hook them up to unittest.

Brandon Rhodes
Independent Consultant
  • Brandon Rhodes offers talks, training, and essays based on more than 20 years of experience with Python and 30 years with Unix.
  • His Python Patterns website offers Pythonic alternatives to the awkward Design Patterns used in less flexible languages.
  • He’s the author of the venerable PyEphem astronomy library, its new replacement Skyfield, and several smaller tools including ‘logging_tree’ and ‘uncommitted’.
  • He is a Fellow of the Python Software Foundation, on whose behalf he served as the volunteer chair of PyCon 2016–2017 in Portland.
Увійти
Або поштою
Увійти
Або поштою
Реєстрація через e-mail
Реєстрація через e-mail
Забули пароль?