Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. py.test mytest.py
  2.  
  3. import sys
  4.  
  5. myparameter = sys.argv[0]
  6.  
  7. class VariousTests(unittest.TestCase):
  8.  
  9. def test_runsomething(self):
  10. print(myparameter)
  11.  
  12. py.test mytest.py "the parameter to pass"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement