Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test suite for Tektronix DPO4104 and bug fixes (#253)
* Test suite for Tektronix DPO4104 and bug fixes Full coverage test suite for Tektronix DPO4104 added. Trying to make use of hypothesis where it makes sense and leave it away where it doesn't. Bug fixes for `tekdpo4104.py`: - Instead of the new value to set, the documentation was passed on in the `_parent_property` routine. This routine is only used once, however, a usage scenario is written but has likely never been tested before. The test that does what this property is supposed to do passes now with the fix. - Reading ASCII data from a data source used `map` and then directly transferred to an `ndarray`. This was fine in python 2, not anymore though. Fixed on line 114. - Reading binary data is tested now. The test however failed since the next command issued left only a termination character. The binary data is read using `binblockread` from `Instruments`. This will leave the last termination character behind. Inserted an additional reading statement to read one character to get rid of this character. Checked with the manual to ensure consistency. Manual states that this termination character should be there after the binary data block, thus, the bug fix makes sense. * Switched hypothesis random sampling over enum to pytest parametrize
- Loading branch information