Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition 197757

Паперова книга
197757
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 1
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 2
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 3
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 4
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 5
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 6
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 7
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 8
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 9
1'700
2 людини
Купити

Все про “Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition”

Від видавця

Test applications, packages, and libraries large and small with pytest, Python’s most powerful testing framework. Pytest helps you write tests quickly and keep them readable and maintainable. In this fully revised edition, explore pytest’s superpowers—simple asserts, fixtures, parametrization, markers, and plugins—while creating simple tests and test suites against a small database application. Using a robust yet simple fixture model, it’s just as easy to write small tests with pytest as it is to scale up to complex functional testing. This book shows you how.

Pytest is undeniably the best choice for testing Python projects. It’s a full-featured, flexible, and extensible testing framework. Pytest’s fixture model allows you to share test data and setup procedures across multiple layers of tests. The pytest framework gives you powerful features such as assert rewriting, parametrization, markers, plugins, parallel test execution, and clear test failure reporting—with no boilerplate code.

With simple step-by-step instructions and sample code, this book gets you up to speed quickly on this easy-to-learn yet powerful tool. Write short, maintainable tests that elegantly express what you’re testing. Speed up test times by distributing tests across multiple processors and running tests in parallel. Use Python’s built-in assert statements instead of awkward assert helper functions to make your tests more readable. Move setup code out of tests and into fixtures to separate setup failures from test failures. Test error conditions and corner cases with expected exception testing, and use one test to run many test cases with parameterized testing. Extend pytest with plugins, connect it to continuous integration systems, and use it in tandem with tox, mock, coverage, and even existing unittest tests.

Write simple, maintainable tests quickly with pytest.

Why a Second Edition?

  • Both Python and pytest have changed since the first edition of this book was published in 2017. There have been updates to pytest that are now reflected in the book:
  • New builtin fixtures
  • New flags
  • The addition of package scope fixtures
  • There have also been updates to Python that are reflected in the book:
  • The adoption of f-strings and pathlib
  • The addition of dataclasses

Also, since publication of the first edition, I have taught many, many people about pytest, and I think I’ve learned how to be a better teacher. The second edition not only expands on what is covered in the first edition—it grew from 7 to 16 chapters!—but also it presents the material in what I think is a more gradual, digestible manner.

Рецензії

0

Всі характеристики

Товар входить до категорії

  • Самовивіз з відділень поштових операторів від 45 ₴ - 80 ₴
  • Безкоштовна доставка від 3000 грн
Схожі товари
Think Python: How to Think Like a Computer Scientist 3rd Edition
280694
Allen B. Downey
1'400 ₴
The Well-Grounded Python Developer: How the pros use Python and Flask
246936
Doug Farrell
1'450 ₴
Machine Learning for Algorithmic Trading: Predictive models to extract signals from market and alternative data for systematic trading strategies with Python, 2nd Edition
270201
Stefan Jansen
1'450 ₴
The hitchhiker's Guide to Python: Best Practices for Development 1st Edition
67107
Kenneth Reitz
1'500 ₴
Think Bayes. Bayesian Statistics in Python 2nd Edition
154853
Allen Downey
1'600 ₴
Hands-On Microservices with Django: Build cloud-native and reactive applications with Python using Django 5
277867
Tieme Woldman
1'600 ₴
Django 5 By Example - Fifth Edition: Build powerful and reliable Python web applications from scratch 5th ed. Edition
280327
Antonio Mele
1'600 ₴
Python для финансовых расчетов
152830
Ив Хилпиш
1'650 ₴
Data Visualization with Python and JavaScript: Scrape, Clean, Explore & Transform Your Data 1st Edition
67148
Kyran Dale
1'496 ₴1'700 ₴
Computational Mathematics: An introduction to Numerical Analysis and Scientific Computing with Python
246257
Dimitrios Mitsotakis
1'700 ₴
Learning Ray: Flexible Distributed Python for Machine Learning
246259
Max PumperlaEdward OakesRichard Liaw
1'700 ₴
FastAPI: Modern Python Web Development 1st Edition
265490
Bill Lubanovic
1'700 ₴
Web Scraping With Python: Data Extraction from the Modern Web 3rd Edition
275380
Ryan Mitchell
1'700 ₴
Web Development with Django - Second Edition: A definitive guide to building modern Python web applications using Django 4 2nd ed. Edition
281127
Ben ShawSaurabh BadhwarChris Guest
1'700 ₴
Bayesian Analysis with Python - Third Edition: A practical guide to probabilistic modeling 3rd ed. Edition
281120
Osvaldo Martin
1'800 ₴