Testing with PyTest
- Pytest features
- Test methods
- Pytest setup
- Pytest - AUT - Application Under Test
- How to use the module?
- Pytest - simple passing test
- Pytest failing test in one function
- Pytest failing test separated
- Pytest run all the test files
- Exercise: test simple module
- Pytest expected exception
- Pytest a nice Fibonacci example
- Pytest testing Fibonacci
- Pytest expected exception
- Pytest testing expected exception
- Pytest Change the text of the exception
- Pytest Missing exception
- Pytest Other exception is raised
- Pytest No exception is raised
- Exercise: test more exceptions
- Solution: test more exceptions
- PyTest: Multiple Failures
- PyTest: Multiple Failures output
- PyTest Selective running of test functions
- PyTest: stop on first failure
- Pytest: expect a test to fail (xfail or TODO tests)
- Pytest: expect a test to fail (xfail or TODO tests)
- PyTest: show xfailed tests with -rx
- Pytest: skipping tests
- Pytest: show skipped tests with -rs
- Pytest: show extra test summmary info with -r
- Pytest: skipping tests output in verbose mode
- Pytest verbose mode
- Pytest quiet mode
- PyTest print STDOUT and STDERR using -s
- Exercise: test math functions
- Exercise: test this app
- Exercise: test the csv module
- Solution: Pytest test math functions
- Solution: Pytest test this app
- Solution: test the csv module
- PyTest using classes
- Exercise: module
- Exercise: Open Source
- parametrize PyTest with pytest.mark.parametrize
- parametrize PyTest with multiple parameters
- Pytest and forking
- Exercise: Write tests for script combining files
- Solution: Write tests for script combining files
- Pytest: Flask echo
- Pytest: testing Flask echo
- Pytest resources
- Anagram on the command line
- PyTest testing CLI