Checklist

Certification

You will get a certificate on completing this course.

University

This course is not affiliated with any university.

Price

This course costs very less.

Edvicer's Rewards

You can get a cashback of ₹ 100 on buying this course.

Unit Testing with Python

1425/month
Start anytime
Self paced
English
Course by
PluralsightCourses from Pluralsight
Certificate awarded
Intermediate
Login to earn ₹ 100

Limited Time Discount Offers

Save your money with Edvicer. Check out our premium courses with discount offers.

Discount offers - Edvicer

Limited Time Discount Offers

Save your money with Edvicer. Check out our premium courses with discount offers.

Map your Career

Not sure which job profiles this course will open for you? Check out our AI based tool to get a complete personalized career map.

Career Mapper - Edvicer

Map your Career

Not sure which job profiles this course will open for you? Check out our AI based tool to get a complete personalized career map.

Checklist

Certification

You will get a certificate on completing this course.

University

This course is not affiliated with any university.

Price

This course costs very less.

Edvicer's Rewards

You can get a cashback of ₹ 100 on buying this course.

Why should you choose this course?

Description

This course will help you to write good unit tests for your Python code, using tools such as unittest, doctest and py.test to improve code quality. Learn more now!

Syllabus

Course Overview
Module Overview
A First Test Case
Another Test Case, Explanation of 'Test Runner'
A Test Case Using assertRaises, Explanation of 'Test Suite'
Skip a Test Case, Marking it Work In Progress
Using setUp and tearDown - Explanation of 'Test Fixture'
Re-Introduce the Skipped Test Case, Get it to Pass.
Cest Case Design - Test Case Names as Specification.
Arrange - Act - Assert - Cleanup
unittest Documentation.
Module Summary.
Module Outline
Four Reasons for Unit Testing
Understanding What to Build
Documenting the Units
Designing the Units
Detecting Regression
Limitations of Unit Testing
Testing as Part of Your Personal Development Process
Test Last
Test First
Test Driven
Continuous Integration
Module Review
Module Outline
Motivation for Looking at pytest
Defining and Running a Simple Test Case
Interpreting Failure Information
Asserting the Contents of Collections
Built-In Helper Functions - 'raises' and 'skip'
Adding a Test Fixture by Using '@pytest.fixture'
Using Built-In Test Fixture Resources - 'tmpdir'
Using pytest to Run 'unittest' Tests
Module Review
Module Outline
What doctest is for, how it Relates to Unit Testing
Documenting a Simple Method With docstring Examples
Using Different Test Runners to Execute doctests
Handling Failing doctests
Handling Output That Changes - Dictionaries and Floats
Testing for Exceptions: Including Tracebacks in doctests
The ELLIPSIS Directive: a Wildcard for Matching Varying Output
Putting doctest Regression Tests in a Separate File
When to Put doctests in a File, Using Approval Testing
Doctest for Checking Tutorial Documentation
Module Review
Module Outline
What is a Test Double?
Example Using a Stub
Using unittest.mock to Create a Stub
Stub Example Summary
Example Using a Fake
Example Using a Mock
Example Using a Spy
Using unittest.mock to Create a Spy and a Mock
Example Using a Dummy Object
Choosing to Use a Particular Kind of Test Double
Using Monkeypatching to Insert a Test Double
Module Review
Module Outline
Using a Custom Assert to Reduce Duplication
Defining Parameterized Tests With unittest
Defining Parameterized Tests With pytest
Measuring Coverage With pytest-cov
Measuring Coverage of unittest Tests
Using Coverage Data to Add Tests to Legacy Code
Good and Bad Uses for Coverage Metrics
Module Review

What others say about this course

FAQs

How to learn Python?

You can start with a basic Python course which covers everything in Python on a basic level like Complete Python Bootcamp: Go from zero to hero in Python 3 by Udemy. This can be followed by an advanced course in the fields you are interested in like Python Data Structures by Coursera for competitive programming, Applied Data Science with Python by Coursera for Machine Learning and Data Science.

Why learn Python?

Python is one of the fastest-growing programming languages right now. It is especially used for data science and machine learning endeavors. At present, there are more than a few opportunities for Python developers. Besides, it is very easy to learn.

Is Python a good language to learn first?

Yes. It is designed with simplicity in mind. The language has a smaller learning curve and supports a pseudo-English-like syntax. Hence, getting started with Python is ideal for anyone looking to embark on the programming journey.

Where can I learn Python?

There are so many places to learn Python. Popular choices include YouTube, Coursera, Udemy, and Pluralsight. You can get all the courses from these providers and more here on Edvicer. There are several great novice Python courses available that will help you build an ample understanding of the language and starting with the same. Also, there is no shortage of advanced Python courses.

How long does it take to learn Python?

Any programming language has two aspects; the syntax, and the library. While the former might require only a few days to learn, the latter is a life-long learning task. However, you can get started with Python professionally after 6 to 7 months of dedicated practice.

What are the top jobs that I can get from learning Python?

The top job profiles for Python developers are Analytics Specialist with an average salary of INR 15 LPA, Analytics Manager with an average salary of INR 19 LPA, and Machine Learning Engineer with an average salary of INR 10.38 LPA. Get your career map for your skills here.

What should I learn; Python or JavaScript?

Learning to choose among Python and JavaScript depends on the purpose you're learning them for. If you want to involve in data science and machine learning then Python is the ideal pick while JS is the go-to option when looking forward to web development. If you wish to simply learn one of them in order to get started with programming then Python might be the best bet. This is because it is beginner-friendly. JavaScript is not an easy programming language. Nonetheless, learning both gives better career advantages.

Can I learn Python without a programming background?

Yes, you can learn Python even without a programming background. However, it is surely a good thing if you first learn the basic programming terminology.

How long does it take to learn Django and Python?

Learning Python and Django are a never-ending process. However, to reach a level of being able to work with both Python and Django, at least 6 months are required.

Can I learn Python on my own?

Yes, definitely. You need to simply learn new Python concepts and then practice them to know better. Going through YouTube video lessons and the best Python tutorials might also help while self-learning Python.

What can I learn after learning Python?

After learning Python, the top skills you can learn to open highest number of job profiles for you are MySql, Data Analytics, and Web Analytics. The top skills that can get you jobs with highest salaries are Spring Boot,SAP, and Spring

Write your review of Unit Testing with Python

Facebook account of EdvicerLinkedin account of EdvicerInstagram account of Edvicer
Twitter account of EdvicerPinterest account of EdvicerYoutube account of Edvicer