What Are pytest Fixtures | pytest Framework Tutorial | Part-VI | LambdaTest

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

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

  • @LambdaTest
    @LambdaTest  ปีที่แล้ว +1

    📌 𝑮𝒊𝒕𝑯𝒖𝒃 𝑳𝒊𝒏𝒌: github.com/RexJonesII/PytestTutorials

  • @adityashrivastava3474
    @adityashrivastava3474 ปีที่แล้ว

    Hi bro can you please help me how to use teardown only when TC fails.

    • @LambdaTest
      @LambdaTest  ปีที่แล้ว

      Hey there 👋
      In pytest, you can use a combination of finalizer functions and request objects to conditionally execute teardown logic when a test fails. Pytest allows the use of request objects in fixtures to introspect the "requesting" test case or to get information from it, such as if it passed or failed.
      Let us know if this helps!

  • @SamiSabirIdrissi
    @SamiSabirIdrissi ปีที่แล้ว +2

    Nice man! Good job on this video 😎

    • @RexJonesII
      @RexJonesII ปีที่แล้ว

      Thanks Sami 👍 I appreciate it

    • @LambdaTest
      @LambdaTest  ปีที่แล้ว

      Glad you liked it! 😊
      Subscribe, and look forward to more such tutorials! ✨

  • @jaberali2024
    @jaberali2024 ปีที่แล้ว

    great video very helpful this video

    • @LambdaTest
      @LambdaTest  ปีที่แล้ว

      Thanks for watching!
      Subscribe, and look forward to more such tutorials! ✨