Commit 8475b08
committed
Enhance error handling and testing for Overkiz API
- Update `get_current_execution` method to return None for non-existent executions.
- Add new exceptions: NoSuchDeviceError and NoSuchActionGroupError.
- Introduce error handling probes in `test_error_handling.py` for various invalid inputs.
- Add test cases for empty responses and specific error scenarios in `test_client.py`.
- Create JSON fixtures for various error responses to improve testing coverage.1 parent b034971 commit 8475b08
File tree
21 files changed
+1112
-14
lines changed- pyoverkiz
- scripts
- tests
- fixtures
- endpoints
- exceptions/cloud
- exec
21 files changed
+1112
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
451 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
452 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
453 | 460 | | |
454 | 461 | | |
455 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
| 808 | + | |
809 | 809 | | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
810 | 813 | | |
811 | 814 | | |
812 | 815 | | |
| |||
815 | 818 | | |
816 | 819 | | |
817 | 820 | | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
818 | 824 | | |
819 | 825 | | |
820 | 826 | | |
821 | 827 | | |
822 | 828 | | |
823 | 829 | | |
824 | | - | |
| 830 | + | |
825 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
826 | 837 | | |
827 | 838 | | |
828 | 839 | | |
| |||
858 | 869 | | |
859 | 870 | | |
860 | 871 | | |
861 | | - | |
| 872 | + | |
862 | 873 | | |
863 | 874 | | |
864 | 875 | | |
| |||
869 | 880 | | |
870 | 881 | | |
871 | 882 | | |
872 | | - | |
| 883 | + | |
873 | 884 | | |
874 | 885 | | |
875 | 886 | | |
| |||
888 | 899 | | |
889 | 900 | | |
890 | 901 | | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
| 902 | + | |
895 | 903 | | |
896 | 904 | | |
897 | 905 | | |
| |||
904 | 912 | | |
905 | 913 | | |
906 | 914 | | |
907 | | - | |
| 915 | + | |
908 | 916 | | |
909 | 917 | | |
910 | 918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
0 commit comments