Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUI TestIncomplete
- Married $120,000 with 2 dependents
- Output
- Errors
- Traceback (most recent call last):
- File "nt-test-7f0cd9ff.py", line 3, in <module>
- tester = TaxCalculator()
- File "/root/sandboxc371f44f/taxformwithgui.py", line 23, in __init__
- self.statusGroup = self.addRadiobuttonGroup(self, 3, 1)
- File "/root/sandboxc371f44f/breezypythongui.py", line 266, in addRadiobuttonGroup
- return EasyRadiobuttonGroup(self, row, column, rowspan, columnspan, orient)
- File "/root/sandboxc371f44f/breezypythongui.py", line 457, in __init__
- sticky = N+S+E+W)
- File "/usr/local/lib/python3.7/tkinter/__init__.py", line 2226, in grid_configure
- + self._options(cnf, kw))
- _tkinter.TclError: bad row value ".!taxcalculator": must be a non-negative integer
- Test Contents
- from taxformwithgui import TaxCalculator
- tester = TaxCalculator()
- tester.after(1000, tester.incomeField.setNumber, 120000)
- tester.after(1000, tester.depField.setNumber, 2)
- tester.after(3000, tester.statusGroup.setSelectedButton(tester.married))
- tester.after(4000, tester.computeTax)
- tester.after(5000, tester.quit)
- tester.mainloop()
- print(tester.taxField.getNumber())
- assert(tester.taxField.getNumber() == 15600)
- GUI TestIncomplete
- Divorced $250,000 with 0 dependents
- Video
- Output
- Errors
- Traceback (most recent call last):
- File "nt-test-ed8f5cf1.py", line 3, in <module>
- tester = TaxCalculator()
- File "/root/sandboxc371f44f/taxformwithgui.py", line 23, in __init__
- self.statusGroup = self.addRadiobuttonGroup(self, 3, 1)
- File "/root/sandboxc371f44f/breezypythongui.py", line 266, in addRadiobuttonGroup
- return EasyRadiobuttonGroup(self, row, column, rowspan, columnspan, orient)
- File "/root/sandboxc371f44f/breezypythongui.py", line 457, in __init__
- sticky = N+S+E+W)
- File "/usr/local/lib/python3.7/tkinter/__init__.py", line 2226, in grid_configure
- + self._options(cnf, kw))
- _tkinter.TclError: bad row value ".!taxcalculator": must be a non-negative integer
- Test Contents
- from taxformwithgui import TaxCalculator
- tester = TaxCalculator()
- tester.after(1000, tester.incomeField.setNumber, 250000)
- tester.after(1000, tester.depField.setNumber, 0)
- tester.after(3000, tester.statusGroup.setSelectedButton(tester.divorced))
- tester.after(4000, tester.computeTax)
- tester.after(5000, tester.quit)
- tester.mainloop()
- print(tester.taxField.getNumber())
- assert(tester.taxField.getNumber() == 24000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement