Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- py.test mytest.py
- import sys
- myparameter = sys.argv[0]
- class VariousTests(unittest.TestCase):
- def test_runsomething(self):
- print(myparameter)
- py.test mytest.py "the parameter to pass"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement