Understanding the Python Mock Object Library

When you’re writing robust code, tests are essential for verifying that your application logic is correct, reliable, and efficient. However, the value of your tests depends on how well they demonstrate these criteria. Obstacles such as complex logic and unpredictable dependencies make writing valuable tests difficult. The Python mock object library, unittest.mock, can help you […]

Read More

Writing Comments in Python

Learn how to write Python comments that are clean, concise, and useful. Quickly get up to speed on what the best practices are, which types of comments it’s best to avoid, and how you can practice writing cleaner comments. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python […]

Read More

Making HTTP Requests With Python

The requests library is the de facto standard for making HTTP requests in Python. It abstracts the complexities of making requests behind a beautiful, simple API so that you can focus on interacting with services and consuming data in your application. Throughout this course, you’ll see some of the most useful features that requests has […]

Read More

Idiomatic Python 101

Python Idioms for people coming from other languages and how to improve your idiomatic practices with Python. We will cover things to do with string concatenation, dictionary look ups, dealing with Python scripts, encoding, and for loops. Note: This course uses Python 2.7 in its coding examples. Resources: Writing Idiomatic Python Python Guide [ Improve […]

Read More

Test-Driven Development With PyTest

In this hands-on course, you’ll see how to create Python unit tests, execute them, and find the bugs before your users do. You’ll learn about the tools available to write and execute tests, check your application’s performance, and even look for security issues. Resources TDD Project Sample Code [ Improve Your Python With 🐍 Python Tricks 💌 […]

Read More

Python Exceptions 101

Learn the proper handling of Python exceptions as well as protecting yourself from when things go wrong. You’ll also learn about how to clean up, after an exception occurs, as well as defining your own exception types when the need arises. Note: This course uses Python 2.7 in its coding examples. [ Improve Your Python […]

Read More