Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. GUI TestIncomplete
  2. Married $120,000 with 2 dependents
  3.  
  4. Output
  5. Errors
  6. Traceback (most recent call last):
  7. File "nt-test-7f0cd9ff.py", line 3, in <module>
  8. tester = TaxCalculator()
  9. File "/root/sandboxc371f44f/taxformwithgui.py", line 23, in __init__
  10. self.statusGroup = self.addRadiobuttonGroup(self, 3, 1)
  11. File "/root/sandboxc371f44f/breezypythongui.py", line 266, in addRadiobuttonGroup
  12. return EasyRadiobuttonGroup(self, row, column, rowspan, columnspan, orient)
  13. File "/root/sandboxc371f44f/breezypythongui.py", line 457, in __init__
  14. sticky = N+S+E+W)
  15. File "/usr/local/lib/python3.7/tkinter/__init__.py", line 2226, in grid_configure
  16. + self._options(cnf, kw))
  17. _tkinter.TclError: bad row value ".!taxcalculator": must be a non-negative integer
  18. Test Contents
  19. from taxformwithgui import TaxCalculator
  20.  
  21. tester = TaxCalculator()
  22.  
  23. tester.after(1000, tester.incomeField.setNumber, 120000)
  24. tester.after(1000, tester.depField.setNumber, 2)
  25. tester.after(3000, tester.statusGroup.setSelectedButton(tester.married))
  26. tester.after(4000, tester.computeTax)
  27. tester.after(5000, tester.quit)
  28.  
  29. tester.mainloop()
  30. print(tester.taxField.getNumber())
  31. assert(tester.taxField.getNumber() == 15600)
  32. GUI TestIncomplete
  33. Divorced $250,000 with 0 dependents
  34.  
  35. Video
  36. Output
  37. Errors
  38. Traceback (most recent call last):
  39. File "nt-test-ed8f5cf1.py", line 3, in <module>
  40. tester = TaxCalculator()
  41. File "/root/sandboxc371f44f/taxformwithgui.py", line 23, in __init__
  42. self.statusGroup = self.addRadiobuttonGroup(self, 3, 1)
  43. File "/root/sandboxc371f44f/breezypythongui.py", line 266, in addRadiobuttonGroup
  44. return EasyRadiobuttonGroup(self, row, column, rowspan, columnspan, orient)
  45. File "/root/sandboxc371f44f/breezypythongui.py", line 457, in __init__
  46. sticky = N+S+E+W)
  47. File "/usr/local/lib/python3.7/tkinter/__init__.py", line 2226, in grid_configure
  48. + self._options(cnf, kw))
  49. _tkinter.TclError: bad row value ".!taxcalculator": must be a non-negative integer
  50. Test Contents
  51. from taxformwithgui import TaxCalculator
  52.  
  53. tester = TaxCalculator()
  54.  
  55. tester.after(1000, tester.incomeField.setNumber, 250000)
  56. tester.after(1000, tester.depField.setNumber, 0)
  57. tester.after(3000, tester.statusGroup.setSelectedButton(tester.divorced))
  58. tester.after(4000, tester.computeTax)
  59. tester.after(5000, tester.quit)
  60.  
  61. tester.mainloop()
  62. print(tester.taxField.getNumber())
  63. assert(tester.taxField.getNumber() == 24000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement