Testing with PyTest


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