Modern Python Projects Transcripts
Chapter: CI
Lecture: Source code for this chapter

Login or purchase this course to watch this video and the rest of the course contents.
0:00 I want to show you how to use Tox. And for that I need to have some code to actually run and test.
0:07 So I will reuse the simple calculator from the previous chapter. I've added the file with some tests, so we have three tests that we can run.
0:15 And one thing that is important about this code is that I am using, f string in this function and f-strings were introduced to Python in version 3.6.
0:24 So you will see that when we run on older Python version, this code should fail.


Talk Python's Mastodon Michael Kennedy's Mastodon