Results Comparison in PyFIT Fixtures
June 26, 2006 by Isaac
I'm not sure if this is the intended behavior or not, but I found a "feature" in PyFIT that had me smashing the keyboard with my face. According to the PyFIT documentation you should be able to create a table like this:
|TestClass| |InputString |OutputNum | |Hello World |>10 | |Python is cool!|1 < _ < 100|
The value returned by the OutputNum method of TestClass should result in a comparison and the cell being highlighted green or red depending on a pass or fail. What the documents don't seem to point out is that doing the comparison on a field declared as an Integer in the _typeDict results in strange looking errors. After much frustration, checking and rechecking my syntax, I tried changing that number to a Float and it worked. So, Floats can be compared and have ranges and Integers can't.
Posted in 
content rss
