Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
pytest Quick Start Guide

You're reading from   pytest Quick Start Guide Write better Python code with simple and maintainable tests

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789347562
Length 160 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Bruno Oliveira Bruno Oliveira
Author Profile Icon Bruno Oliveira
Bruno Oliveira
Arrow right icon
View More author details
Toc

Overview of what we have learned

The following sections will summarize what we have learned in this book.

Introduction

  • You should consider writing tests as your safety net. It will make you more confident in your work, allow you to refactor with confidence, and be certain that you are not breaking other parts of the system.
  • A test suite is a must-have if you are porting a Python 2 code base to Python 3, as any guide will tell you, (https://docs.python.org/3/howto/pyporting.html#have-good-test-coverage).
  • It is a good idea to write tests for the external APIs you depend on, if they don't have automated tests.
  • One of the reasons pytest is a great choice for beginners is because it is easy to get started; write your tests...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image