We may earn an affiliate commission when you visit our partners.
Emily Bache

This course will teach you to write and use unit tests in Python using popular tools and frameworks like unittest and pytest.

Read more

This course will teach you to write and use unit tests in Python using popular tools and frameworks like unittest and pytest.

Developers want to be sure the code they write is good quality and does the right thing. In this course, Testing in Python 3, you’ll learn to write unit tests in popular frameworks like unittest and pytest. First, you’ll explore the basic ideas and vocabulary of unit testing with the built-in package unittest and the popular tool pytest. Next, you’ll discover how to use test doubles to isolate your units. Finally, you’ll learn how to use more advanced testing techniques like approval testing and parameterized tests. When you’re finished with this course, you’ll have the skills and knowledge of writing the automated tests needed to ensure your code does what you think it does and has a reliable suite of regression tests to support future development.

Enroll now

Here's a deal for you

We found an offer that may be relevant to this course.
Save money when you learn. All coupon codes, vouchers, and discounts are applied automatically unless otherwise noted.

What's inside

Syllabus

Course Overview
Unit Test Vocabulary and Design
Using Pytest
Testing By Developers: Why and When
Read more
Using Test Doubles
Improving Test Coverage and Maintainability
Code That’s Difficult to Test

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Develops strong foudnations in using unit tests in Python, which are core skills for software development

Save this course

Save Testing in Python 3 to your list so you can find it easily later:
Save

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Testing in Python 3 with these activities:
Create a Unit Testing Resource Collection
Gather valuable resources for future reference.
Browse courses on Unit Testing
Show steps
  • Find and download relevant articles, tutorials, and documentation.
  • Organize the resources into a structured collection.
  • Preview the resources to ensure their quality.
Find an Experienced Unit Tester
Accelerate your learning with guidance from an expert.
Browse courses on Unit Testing
Show steps
  • Identify potential mentors in your network.
  • Reach out to mentors and ask for guidance.
  • Set up regular meetings or communication channels.
Practice Unit Testing in Python
Get hands-on experience with unit testing.
Browse courses on Unit Testing
Show steps
  • Set up a Python environment for unit testing.
  • Write test cases for a simple function.
  • Run the test cases and analyze the results.
Four other activities
Expand to see all activities and additional details
Show all seven activities
Practice Writing Unit Tests
Fine-tune your ability to write effective unit tests.
Browse courses on Unit Testing
Show steps
  • Write test cases for a simple function.
  • Review the test case coverage.
  • Refactor the test cases to improve readability.
Understand Mocking in Unit Testing
Expand your knowledge of unit testing techniques.
Browse courses on Mocking
Show steps
  • Follow a tutorial on mocking in Python.
  • Experiment with mocking different types of objects.
  • Learn about the benefits and drawbacks of using mocks.
Write a Blog Post on Unit Testing
Share your knowledge and reinforce your understanding.
Browse courses on Unit Testing
Show steps
  • Choose a specific topic within unit testing to focus on.
  • Research and gather information to support your topic.
  • Write a draft of the blog post, ensuring clarity and flow.
  • Review and edit the blog post for accuracy and readability.
Build a Unit Testing Library
Demonstrate your understanding of unit testing by creating a custom library.
Browse courses on Unit Testing
Show steps
  • Design the architecture of the library.
  • Implement the core functionality of the library.
  • Write unit tests for the library.
  • Document the library for easy use.

Career center

Learners who complete Testing in Python 3 will develop knowledge and skills that may be useful to these careers:
Test Engineer
As a Test Engineer, you will be responsible for designing and executing test plans to ensure that software applications meet quality standards. This course in Testing in Python 3 will help you build a strong foundation in unit testing and automated testing. The course covers the basics of unit testing and writing automated tests for Python applications. You will also learn how to use tools like pytest to manage and run your tests. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Test Engineer.
Quality Assurance Analyst
As a Quality Assurance Analyst, you will be responsible for testing software applications to ensure that they meet quality standards. This course in Testing in Python 3 will help you build a strong foundation in unit testing and automated testing. The course covers the basics of unit testing and writing automated tests for Python applications. You will also learn how to use tools like pytest to manage and run your tests. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Quality Assurance Analyst.
Software Engineer
As a Software Engineer, you will be responsible for designing, developing, and testing software applications. This course in Testing in Python 3 will help you build a strong foundation in unit testing, which is an essential skill for any software engineer. The course covers the basics of unit testing, as well as more advanced topics such as test doubles and parameterized tests. By taking this course, you will gain the skills and knowledge you need to write reliable and maintainable unit tests, which will help you to ensure that your software applications are of high quality.
Software Development Manager
As a Software Development Manager, you will be responsible for overseeing the development of software applications. This course in Testing in Python 3 will help you build a strong foundation in unit testing and automated testing. The course covers the basics of unit testing and writing automated tests for Python applications. You will also learn how to use tools like pytest to manage and run your tests. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Software Development Manager.
Product Manager
As a Product Manager, you will be responsible for defining and managing the product roadmap for software applications. This course in Testing in Python 3 will help you build a strong foundation in unit testing and automated testing. The course covers the basics of unit testing and writing automated tests for Python applications. You will also learn how to use tools like pytest to manage and run your tests. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Product Manager.
Data Analyst
As a Data Analyst, you will be responsible for collecting, analyzing, and interpreting data to identify trends and patterns. This course in Testing in Python 3 will help you build a strong foundation in unit testing and automated testing. The course covers the basics of unit testing and writing automated tests for Python applications. You will also learn how to use tools like pytest to manage and run your tests. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Data Analyst.
IT Consultant
As an IT Consultant, you will be responsible for providing consulting services to businesses on how to use technology to improve their operations. This course in Testing in Python 3 may be useful in your career as an IT Consultant. The course covers the basics of unit testing and automated testing for Python applications. By taking this course, you will gain the skills and knowledge you need to be successful in a career as an IT Consultant.
Project Manager
As a Project Manager, you will be responsible for planning, organizing, and executing projects. This course in Testing in Python 3 may be useful in your career as a Project Manager. The course covers the basics of unit testing and automated testing for Python applications. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Project Manager.
Data Engineer
As a Data Engineer, you will be responsible for designing and developing data pipelines to collect, process, and store data. This course in Testing in Python 3 may be useful in your career as a Data Engineer. The course covers the basics of unit testing and automated testing for Python applications. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Data Engineer.
Technical Writer
As a Technical Writer, you will be responsible for writing technical documentation for software applications. This course in Testing in Python 3 may be useful in your career as a Technical Writer. The course covers the basics of unit testing and automated testing for Python applications. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Technical Writer.
Software Developer
As a Software Developer, you will be responsible for designing, developing, and testing software applications. This course in Testing in Python 3 may be useful in your career as a Software Developer. The course covers the basics of unit testing and automated testing for Python applications. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Software Developer.
Software Architect
As a Software Architect, you will be responsible for designing and developing the architecture of software applications. This course in Testing in Python 3 may be useful in your career as a Software Architect. The course covers the basics of unit testing and automated testing for Python applications. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Software Architect.
Business Analyst
As a Business Analyst, you will be responsible for analyzing business needs and developing solutions to meet those needs. This course in Testing in Python 3 may be useful in your career as a Business Analyst. The course covers the basics of unit testing and automated testing for Python applications. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Business Analyst.
Machine Learning Engineer
As a Machine Learning Engineer, you will be responsible for designing and developing machine learning models to solve business problems. This course in Testing in Python 3 may be useful in your career as a Machine Learning Engineer. The course covers the basics of unit testing and automated testing for Python applications. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Machine Learning Engineer.
Data Scientist
As a Data Scientist, you will be responsible for collecting, analyzing, and interpreting data to identify trends and patterns. This course in Testing in Python 3 may be useful in your career as a Data Scientist. The course covers the basics of unit testing and automated testing for Python applications. By taking this course, you will gain the skills and knowledge you need to be successful in a career as a Data Scientist.

Reading list

We've selected 11 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Testing in Python 3.
Is considered to be one of the most influential books on unit testing written, despite being published in 2009. It useful reference book.
Is considered to be one of the most influential books on TDD written. It useful reference book.
Valuable textbook used in academic institutions and industry and is useful for providing background knowledge for this course.
Classic in the field of software testing. It provides a comprehensive overview of the discipline, making it suitable for additional reading or as a reference.
Is considered to be one of the most influential software development books written. It is valuable for additional reading.
Valuable textbook used in academic institutions and industry and is useful for providing background knowledge for this course.
Primarily focuses on Python, the procedural programming language that underpins the material in this course.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to Testing in Python 3.
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2024 OpenCourser