Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # normalna funkcja
- def func():
- pass
- # używasz:
- func()
- # dekorator dodaje argument:
- @dekorator
- def func(something):
- pass
- # ale używasz bez tego argumentu
- func()
- # jednak jeśli zrobisz to w metodzie testującej, to py.test Ci zwróci, że nie ma fixtury "something"
- @dekorator
- def func(something):
- pass
Advertisement
Add Comment
Please, Sign In to add comment