meejah,
@meejah@mastodon.social avatar

@pkw The similarity I see is that Click "magically" uses the option-name to pass the value to the correct arg; pytest "magically" uses the arg-name to call the correct fixture (it's not just for the side-effect: it passes the value returned into your function). Click also depends on "side effects" of the decorators...

Certainly I still agree that pytest's is "more magic", but they're both about convenience (e.g. you could implement Click's to be strictly explicit passing too)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • everett
  • DreamBathrooms
  • modclub
  • normalnudes
  • ngwrru68w68
  • magazineikmin
  • Durango
  • ethstaker
  • Youngstown
  • rosin
  • slotface
  • InstantRegret
  • kavyap
  • thenastyranch
  • megavids
  • osvaldo12
  • Leos
  • cubers
  • tacticalgear
  • khanakhh
  • mdbf
  • GTA5RPClips
  • anitta
  • provamag3
  • cisconetworking
  • tester
  • JUstTest
  • lostlight
  • All magazines