Python Methods As Decorators

Python function decorators (PEP 318) make it easy to modify behavior of functions (or add new functionality), without changing them. We won't introduce them here as they're documented extensively.

We're demonstrating a specific case, where we have a class and we want to to use one of ...

more ...

Skipping Tests

Sometimes a test should be skipped for a good reason (some resource is not available for a while and mocking is not an option, or tests are assumed to be impacting each other, etc.).

Most test runners support a way to mark a test to be skipped in a proper ...

more ...

Python Virtual Environments

Date Tags python

Problem: Different applications might require different versions of the same libraries, which version of those libraries should be installed?

Problem: There are tools installed with the operation system written in Python, they require specific versions of some libraries, and the ones provided by the operating system packages are to satisfy ...

more ...