LEADER 00000cam a2200505 i 4500 003 OCoLC 005 20240129213017.0 006 m o d 007 cr unu|||||||| 008 171206s2017 ncu o 000 0 eng d 020 9781680502848|q(electronic bk.) 020 1680502840|q(electronic bk.) 029 1 GBVCP|b1014938155 035 (OCoLC)1014021663 037 CL0500000918|bSafari Books Online 040 UMI|beng|erda|epn|cUMI|dSTF|dOCLCF|dTOH|dOH1|dCEF|dKSU |dDEBBG|dG3B|dUAB|dRDF|dOCLCQ|dDST|dOCLCO|dOCLCQ|dOCLCO |dOCLCL 049 INap 082 04 005.14 082 04 005.14|223 099 eBook O'Reilly for Public Libraries 100 1 Okken, Brian,|eauthor 245 10 Python testing with Pytest :|bsimple, rapid, effective, and scalable /|cBrian Okken.|h[O'Reilly electronic resource] 250 Version: P1.0 (September 2017). 264 1 Raleigh, North Carolina :|bPragmatic Bookshelf,|c2017. 300 1 online resource (1 volume) 336 text|btxt|2rdacontent 337 computer|bc|2rdamedia 338 online resource|bcr|2rdacarrier 490 1 The pragmatic programmers 505 0 Getting started with Pytest -- Writing test functions -- Pytest fixtures -- Builtin fixtures -- Plugins -- Configuration -- Using pytest with other tools. 520 Do less work when testing your Python code, but be just as expressive, just as elegant, and just as readable. The pytest testing framework helps you write tests quickly and keep them readable and maintainable - with no boilerplate code. 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 for applications, packages, and libraries. This book shows you how. For Python-based projects, pytest is the undeniable choice to test your code if you're looking for a full-featured, API- independent, flexible, and extensible testing framework. With a full-bodied fixture model that is unmatched in any other tool, the pytest framework gives you powerful features such as assert rewriting and plug-in capability - 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 and robust tool. Write short, maintainable tests that elegantly express what you're testing. Add powerful testing features and still speed up test times by distributing tests across multiple processors and running tests in parallel. Use the built-in assert statements to reduce false test failures by separating setup and 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, unittest, and doctest. Write simple, maintainable tests that elegantly express what you're testing and why. What You Need: The examples in this book are written using Python 3.6 and pytest 3.0. However, pytest 3.0 supports Python 2.6, 2.7, and Python 3.3-3.6. 588 0 Online resource; title from title page (Safari, viewed December 5, 2017). 590 O'Reilly|bO'Reilly Online Learning: Academic/Public Library Edition 650 0 Python (Computer program language) 650 0 Computer software|xTesting. 650 0 Debugging in computer science. 650 6 Python (Langage de programmation) 650 6 Débogage. 650 7 Computer software|xTesting|2fast 650 7 Debugging in computer science|2fast 650 7 Python (Computer program language)|2fast 830 0 Pragmatic programmers. 856 40 |uhttps://ezproxy.naperville-lib.org/login?url=https:// learning.oreilly.com/library/view/~/9781680502848/?ar |zAvailable on O'Reilly for Public Libraries 994 92|bJFN