Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. def submit_new_account_form(self, **credentials):
  2. ...
  3.  
  4. create_new_account = loginpage.submit_new_account_form(
  5. {'first_name': 'Test', 'last_name': 'Test', 'phone_or_email':
  6. temp_email, 'newpass': '1q2w3e4r5t',
  7. 'sex': 'male'})
  8.  
  9. line 22, in test_new_account_succes
  10. 'sex': 'male'})
  11. TypeError: submit_new_account_form() takes 1 positional argument but 2 were
  12. given
  13.  
  14. def submit_new_account_form(self, credentials):
  15. # ...
  16. pass
  17.  
  18. loginpage.submit_new_account_form({'first_name': 'Test', 'last_name': 'Test', 'phone_or_email': temp_email, 'newpass': '1q2w3e4r5t', 'sex': 'male'})
  19.  
  20. def submit_new_account_form(self, **credentials):
  21. # ...
  22. pass
  23.  
  24. loginpage.submit_new_account_form(**{'first_name': 'Test', 'last_name': 'Test', 'phone_or_email': temp_email, 'newpass': '1q2w3e4r5t', 'sex': 'male'})
  25.  
  26. loginpage.submit_new_account_form(first_name='Test', last_name='Test', phone_or_email=temp_email, newpass='1q2w3e4r5t', sex='male')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement