Testing with PyTest


  1. Pytest features
  2. Pytest setup
  3. Testing with Pytest
  4. Testing functions
  5. Testing class and methods
  6. Pytest - execute
  7. Pytest - execute
  8. Pytest simple module to be tested
  9. Pytest simple tests - success
  10. Pytest simple tests - success output
  11. Pytest simple tests - failure
  12. Pytest simple tests - failure output
  13. Exercise: test math functions
  14. Exercise: test this app
  15. Exercise: test the csv module
  16. Solution: Pytest test math functions
  17. Solution: Pytest test this app
  18. Solution: test the csv module
  19. PyTest bank deposit
  20. PyTest expected exceptions (bank deposit)
  21. PyTest expected exceptions (bank deposit) - no exception happens
  22. PyTest expected exceptions (bank deposit) - different exception is raised
  23. PyTest expected exceptions
  24. PyTest expected exceptions output
  25. PyTest expected exceptions (text changed)
  26. PyTest expected exceptions (text changed) output
  27. PyTest expected exceptions (other exception)
  28. PyTest expected exceptions (other exception) output
  29. PyTest expected exceptions (no exception)
  30. PyTest expected exceptions (no exception) output
  31. PyTest: Multiple Failures
  32. PyTest: Multiple Failures output
  33. PyTest Selective running of test functions
  34. PyTest: stop on first failure
  35. Pytest: expect a test to fail (xfail or TODO tests)
  36. Pytest: expect a test to fail (xfail or TODO tests)
  37. PyTest: show xfailed tests with -rx
  38. Pytest: skipping tests
  39. Pytest: show skipped tests woth -rs
  40. Pytest: show extra test summmary info with -r
  41. Pytest: skipping tests output in verbose mode
  42. Pytest verbose mode
  43. Pytest quiet mode
  44. PyTest print STDOUT and STDERR using -s
  45. PyTest failure reports
  46. PyTest compare numbers
  47. PyTest compare numbers relatively
  48. PyTest compare strings
  49. PyTest compare long strings
  50. PyTest is one string in another strings
  51. PyTest test any expression
  52. PyTest element in list
  53. PyTest compare lists
  54. PyTest compare short lists
  55. PyTest compare short lists - verbose output
  56. PyTest compare dictionaries
  57. PyTest compare dictionaries output
  58. PyTest Fixtures
  59. PyTest Fixture setup and teardown
  60. PyTest Fixture setup and teardown output
  61. PyTest: Class setup and teardown
  62. PyTest: Class setup and teardown output
  63. Pytest Dependency injection
  64. Pytest fixture - tmpdir
  65. Pytest capture STDOUT and STDERR with capsys
  66. Pytest Fixture - home made fixtures
  67. Pytest: Mocking - why?
  68. Pytest: Mocking - what?
  69. Pytest: One dimensional spacefight
  70. Pytest: Mocking input and output
  71. Pytest: Mocking random
  72. Pytest: Flask echo
  73. Pytest: testing Flask echo
  74. PyTest: Run tests in parallel with xdist
  75. PyTest: Order of tests
  76. PyTest: Randomize Order of tests
  77. PyTest: Force default order
  78. PyTest: no random order
  79. Anagram on the command line
  80. PyTest testing CLI
  81. PyTest test discovery
  82. PyTest test discovery - ignore some tests
  83. PyTest select tests by name
  84. PyTest select tests by marker
  85. PyTest: Test Coverage
  86. Exercise: module
  87. Exercise: Open Source
  88. Pytest resources

Your comments: