Module 8 Summary
Thomas J. Kennedy
Having completed the TWriting Pythonic Code, Code Linting, and Testing with PyTest module (i.e., Module 8) you should now be comfortable:
-
writing a test for an existing function or module
-
using test driven development to refactor code
-
using tools such as
isort
andblack
to automatically reformat code -
using tools such as
pylint
to identify style issues in code -
correcting the issues identified by a tool such as
pylint
1 Questions to Consider
Take a few minutes to think about the following:
-
How a parametrized test can reduce duplication in test code
-
How tools such as black help make code more Pythonic
-
How TDD reduces disposable “main” functions
2 On to the Next Module…
The next module (i.e., Modules, Classes, and Objects) covers how to design and write classes in Python.