Commit ddb4a13
Frederick Ross
Fixed several failing tests by improving __contains__; added workaround for an error in the returns of fired alerts.
__contains__ had used __getitem__, but the confs endpoints make that untenable: they return collections, not entities, from __getitem__, which means they don't make a roundtrip to the server to check for actual existence. I also had to add handling of atom feeds containing no entries to __contains__ and __getitem__ so that it would work for fired alerts, which return empty atom feeds instead of 404s if the alert doesn't exist.1 parent a5dc397 commit ddb4a13
1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
848 | 847 | | |
849 | 848 | | |
850 | 849 | | |
851 | 850 | | |
852 | 851 | | |
853 | 852 | | |
854 | 853 | | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
859 | 867 | | |
860 | 868 | | |
861 | 869 | | |
| |||
916 | 924 | | |
917 | 925 | | |
918 | 926 | | |
| 927 | + | |
| 928 | + | |
919 | 929 | | |
920 | 930 | | |
921 | 931 | | |
| |||
0 commit comments