Commit graph

9 commits

Author SHA1 Message Date
Daniele Forsi IU5HKX
57b23e7efc Add autogenerated test scripts for pytest 2025-06-22 07:38:20 +02:00
Daniele Forsi IU5HKX
464450384d Add a Python script to autogenerate some tests for pytest 2025-06-22 07:33:32 +02:00
Daniele Forsi IU5HKX
4b0fa60e95 Remove ignored symbol 2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
637ccebe02 Test returned datatypes 2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
591f7cf5c8 Fix Rig.get_ant() 2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
65ffc5426b Remove undocumented unused method rig.chan_clear() 2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
77c02b58bb Add tests for the Rig class 2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
c693afb040 Replace print() with assert
So changes in behavior can be detected.
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
f4dcd7d565 Add a pytest test copying all the contents of the old py3test.py
Python tests are enabled by default when building the Python bindings
if pytest is available at configuration time:
 ./configure --with-python-binding
or
 ./configure --with-python-binding --enable-pytest=check
To fail the configure step if the tests can't be enabled:
 ./configure --with-python-binding --enable-pytest
or
 ./configure --with-python-binding --enable-pytest=yes
To disable the tests:
 ./configure --with-python-binding --enable-pytest=no
To run the tests:
 make -C bindings/ check
2025-06-15 23:10:07 +02:00