diff --git a/.github/workflows/run_unit_tests.yml b/.github/workflows/run_unit_tests.yml index 75d29dff..fa94cd7f 100644 --- a/.github/workflows/run_unit_tests.yml +++ b/.github/workflows/run_unit_tests.yml @@ -34,8 +34,8 @@ jobs: run: poetry install -v - name: Display installed dependency versions run: poetry run pip list - - name: Run unit tests and code coverage - run: poetry run pytest ./tests/unit -v --cov=nitypes --junitxml=test_results/nitypes-${{ matrix.os }}-py${{ matrix.python-version }}.xml + - name: Run unit/acceptance/doc tests and code coverage + run: poetry run pytest -v --cov=nitypes --junitxml=test_results/nitypes-${{ matrix.os }}-py${{ matrix.python-version }}.xml - name: Run benchmarks run: poetry run pytest ./tests/benchmark -v --junitxml=test_results/nitypes-benchmarks-${{ matrix.os }}-py${{ matrix.python-version }}.xml - name: Upload test results diff --git a/src/nitypes/waveform/_digital/_port.py b/src/nitypes/waveform/_digital/_port.py index c02070b6..938a874a 100644 --- a/src/nitypes/waveform/_digital/_port.py +++ b/src/nitypes/waveform/_digital/_port.py @@ -147,7 +147,7 @@ def _mask_to_column_indices( [8] >>> _mask_to_column_indices(0xDEADBEEF, 32, "little") [0, 1, 2, 3, 5, 6, 7, 9, 10, 11, 12, 13, 15, 16, 18, 19, 21, 23, 25, 26, 27, 28, 30, 31] - >>> _mask_to_column_indices(-1, 8) + >>> _mask_to_column_indices(-1, 8, "little") Traceback (most recent call last): ... ValueError: The mask must be a non-negative integer. diff --git a/src/nitypes/waveform/_digital/_waveform.py b/src/nitypes/waveform/_digital/_waveform.py index 7d542148..fca60948 100644 --- a/src/nitypes/waveform/_digital/_waveform.py +++ b/src/nitypes/waveform/_digital/_waveform.py @@ -273,10 +273,10 @@ class DigitalWaveform(Generic[TDigitalState]): and the digital state from the actual and expected waveforms: >>> result.failures[0] # doctest: +NORMALIZE_WHITESPACE - DigitalWaveformFailure(sample_index=0, expected_sample_index=0, signal_index=0, column_index=1, + DigitalWaveformFailure(sample_index=0, expected_sample_index=0, signal_index=0, actual_state=, expected_state=) >>> result.failures[1] # doctest: +NORMALIZE_WHITESPACE - DigitalWaveformFailure(sample_index=1, expected_sample_index=1, signal_index=0, column_index=1, + DigitalWaveformFailure(sample_index=1, expected_sample_index=1, signal_index=0, actual_state=, expected_state=) Timing information