Commit graph

60 commits

Author SHA1 Message Date
Daniele Forsi IU5HKX
a617863a23 Revert "Fix Rig.set_mem()"
This reverts commit 663612051c7fcc455c978c9f82889e2a9ab4836d.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
2199ff2bde Revert "Fix Rig.set_ctcss_sql() Rig.set_ctcss_tone() Rig.set_dcs_code()"
This reverts commit ed7e5b2344ccabe0abf5d4f215345acf86aa834f.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
3240d2f8d3 Revert "Fix various methods"
This reverts commit 623b93db3dfb5c80aa89f67eb2eb2eff4c044faa.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
292da12566 Fix various methods
Fixes: set_ptt set_rit set_rptr_offs set_rptr_shift
set_split_freq set_ts set_xit vfo_op

This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
160c941e9e Fix Rig.set_ctcss_sql() Rig.set_ctcss_tone() Rig.set_dcs_code()
This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
25aae7d8e2 Fix Rig.set_mem()
This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
90c56f3e1f Fix Rig.set_freq()
This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
2b1428fd3e Add meaningful arguments 2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
8901b210ee Fix Rig.send_dtmf() 2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
13c2413bba Fix Rig.send_morse()
This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
25a2a4447f Fix Rig.get_ant() tests
The first argument is the antenna.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX
83ba4eb27f Update the tests 2025-07-22 23:42:30 +02:00
Michael Morgan
4da91f1a28
Use alternate quoting for older Python versions
Since Python 3.12, strings such as:

f"test_{object_name.replace(".", "_")}_class.py"

are allowed but older versions require single quotes around the dot and
underscore within the double quoted string.

Should quell CI error on Ubuntu Noble.
2025-07-22 16:15:56 -05:00
Daniele Forsi IU5HKX
ce6e4a8e57 Make test_amp.py more similar to the others 2025-07-19 17:22:25 +02:00
Daniele Forsi IU5HKX
1e484942fc Add the new includes that contain the state
And update the test again.
2025-07-19 17:15:56 +02:00
Daniele Forsi IU5HKX
74914f0db8 Remove duplicated tests 2025-07-19 17:15:53 +02:00
Daniele Forsi IU5HKX
e31ad81402 New model added 2025-07-18 23:56:54 +02:00
Daniele Forsi IU5HKX
a3ba82a8c8 Rewrite automated tests with newlines 2025-07-18 23:47:53 +02:00
Daniele Forsi IU5HKX
9931b1ce9c Put each item of callables and properties on a new line
Makes it easier to see diffs.
2025-07-18 23:41:36 +02:00
Daniele Forsi IU5HKX
60541cf35b Sort the lists of callables and properties
The dir() function returns a list which is not necessarily ordered
in fact it wasn't ordered on the CI runner.
2025-07-18 00:01:23 +02:00
George Baltz N3GB
b8c1d80626 Add required noise 2025-07-11 15:45:27 -04:00
Michael Morgan
6ae7e5986f
Update test_Hamlib_class.py 2025-07-09 11:11:02 -05:00
Daniele Forsi IU5HKX
61ad3cda10 Use Hamlib.rigerror2() to get the error message for the given error number 2025-07-06 15:25:51 +02:00
Daniele Forsi IU5HKX
bf518c0609 Fix Rig.get_ant()
The only supported value for get_ant() in the union of "option"
is signed integer.
Do the test when the rig is open.
2025-06-26 20:29:25 +02:00
Daniele Forsi IU5HKX
6c399b55ff Assert the length of sequences instead of the list datatype
We only need to check how many values exist.
2025-06-25 22:54:18 +02:00
Daniele Forsi IU5HKX
7223fb0766 Fix Rig.get_vfo_info() 2025-06-25 19:16:33 +02:00
Daniele Forsi IU5HKX
453e68c6cd Fix Rig.get_split_vfo()
The VFO argument optional with a default of RIG_VFO_CURR.
Fixes PR ##1555.
2025-06-25 19:16:33 +02:00
Daniele Forsi IU5HKX
66977a0f12 Explain unexpected results 2025-06-22 08:10:47 +02:00
Daniele Forsi IU5HKX
16a0ad7bf1 Update autogenerated tests for Hamlib module 2025-06-22 08:10:44 +02:00
Daniele Forsi IU5HKX
5d1baed7e5 Test setting and getting meaningful values 2025-06-22 08:02:15 +02:00
Daniele Forsi IU5HKX
ec8eaab1f5 Enable assert Hamlib.rigerror()
Pull request #1727 has been merged so now the test succeeds.
2025-06-22 08:02:15 +02:00
Daniele Forsi IU5HKX
5915f17322 Update autogenerated tests for Rot object 2025-06-22 08:02:11 +02:00
Daniele Forsi IU5HKX
5c58c99207 Implement Rot.get_ext_parm() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
6fd6e94d3b Implement Rot.get_ext_level() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
e34026707c Implement Rot.get_ext_func() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
be1a558e0d Implement Rot.set_ext_parm() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
f7710d96b0 Implement Rot.set_ext_func() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
20960b726e Implement Rot.set_ext_level() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
5d142de5cd Implement Rot.get_parm() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
8093f05c65 Implement Rot.get_level() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
94774a63d9 Implement Rot.set_level() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
cfca827f5e Implement Rot.set_parm() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
bb79bbc278 Implement Rot.get_func() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
cc0dbc9efd Implement Rot.set_func() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
5a5279492e Mark asserts that are currently failing 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
a172b6001f Add tests for the Rot object 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
4b64ea3169 Update autogenerated tests for Amp object 2025-06-22 07:57:55 +02:00
Daniele Forsi IU5HKX
f7d38f92ca Implement Amp.get_level 2025-06-22 07:38:23 +02:00
Daniele Forsi IU5HKX
4e415f412b Implement Amp.get_freq 2025-06-22 07:38:23 +02:00
Daniele Forsi IU5HKX
02f7b96163 Implement Amp.get_powerstat 2025-06-22 07:38:23 +02:00