How to Test Python Code with PyTest (Best Practices & Examples)

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025

ความคิดเห็น • 12

  • @codewithjoshoffical
    @codewithjoshoffical  7 วันที่ผ่านมา +1

    👉 Join my Python Newsletter ~ www.thenerdnook.io
    👉 Get my Python Courses, Free ~ zerotoknowing.gumroad.com
    🎯Join our Discord Community ~ discord.gg/dvrcpXSwyc

  • @ChiLâm-p9x
    @ChiLâm-p9x 6 วันที่ผ่านมา +1

    Great content as usual, thank you

  • @agentm10
    @agentm10 6 วันที่ผ่านมา +1

    Fantastic. It would be nice now to see a TDD project that uses pytest, pylint, and pdb together!

    • @codewithjoshoffical
      @codewithjoshoffical  6 วันที่ผ่านมา

      That would be a great video! I'll add it to my list. 😁
      Also do we still need pdb though if there’s now a breakpoint() function?

    • @agentm10
      @agentm10 5 วันที่ผ่านมา

      @@codewithjoshoffical probably not. I am very used to pdb, so am partial to it. It also helps to not have any debug/breakpoints in my code that I have to remind myself to turn off.

  • @muhammadadilnaeem
    @muhammadadilnaeem 6 วันที่ผ่านมา +1

    Good Explanation.

  • @georgem.5976
    @georgem.5976 วันที่ผ่านมา

    Cool fella!
    Did you try Property-Based Testing in Python With Hypothesis If yes: please do a video with that!
    If not.. you will be pleased playing witht that thing from now on ..😬

    • @codewithjoshoffical
      @codewithjoshoffical  วันที่ผ่านมา

      Nooo! Not yet, but actually in the middle of writing an article on that 😁. That could be something to make a video around too

  • @debashisdas3693
    @debashisdas3693 7 วันที่ผ่านมา +1

    as a student for me it was really complex project🤕 ,i didnot understand anyways, i know your ability but how you built the logic in your mind like so effortlessly???

    • @codewithjoshoffical
      @codewithjoshoffical  7 วันที่ผ่านมา

      I struggle everyday, there are things I find easy, other things are still very hard.
      It’s practice and building projects that help.
      When you build a project try to see what you can use in it