Commit baaba22
committed
chore: make
Convert `Gitlab.http_request()` to `Gitlab._http_request()` to signify
it is a private/protected method so that users of the library know
they should not use the method and we make no API stability promises
for using it.
Add a `Gitlab.http_request()` method which will issue a Deprecation
warning when called. It will pass the call onto
`Gitlab._http_request()`
Also, in the interest of improving code read-ability, require keyword
arg usage when calling `Gitlab._http_request()`Gitlab.http_request() a private method1 parent a1dbe86 commit baaba22Copy full SHA for baaba22
File tree
Expand file treeCollapse file tree
2 files changed
+84
-21
lines changedOpen diff view settings
Filter options
- gitlab
- tests/unit
Expand file treeCollapse file tree
2 files changed
+84
-21
lines changedOpen diff view settings
Collapse file
+50-13Lines changed: 50 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
21 | 22 | |
22 | 23 | |
23 | 24 | |
| ||
549 | 550 | |
550 | 551 | |
551 | 552 | |
552 | | - |
| 553 | + |
553 | 554 | |
554 | 555 | |
555 | 556 | |
| ||
617 | 618 | |
618 | 619 | |
619 | 620 | |
| 621 | + |
| 622 | + |
| 623 | + |
| 624 | + |
| 625 | + |
| 626 | + |
| 627 | + |
| 628 | + |
| 629 | + |
| 630 | + |
| 631 | + |
| 632 | + |
| 633 | + |
| 634 | + |
| 635 | + |
| 636 | + |
| 637 | + |
| 638 | + |
| 639 | + |
| 640 | + |
| 641 | + |
| 642 | + |
| 643 | + |
| 644 | + |
| 645 | + |
| 646 | + |
| 647 | + |
| 648 | + |
| 649 | + |
| 650 | + |
| 651 | + |
| 652 | + |
| 653 | + |
| 654 | + |
620 | 655 | |
621 | 656 | |
622 | 657 | |
623 | 658 | |
624 | | - |
| 659 | + |
625 | 660 | |
626 | 661 | |
627 | 662 | |
| ||
678 | 713 | |
679 | 714 | |
680 | 715 | |
681 | | - |
| 716 | + |
682 | 717 | |
683 | 718 | |
684 | 719 | |
| ||
758 | 793 | |
759 | 794 | |
760 | 795 | |
761 | | - |
762 | | - |
| 796 | + |
| 797 | + |
763 | 798 | |
764 | 799 | |
765 | 800 | |
| ||
855 | 890 | |
856 | 891 | |
857 | 892 | |
858 | | - |
859 | | - |
860 | | - |
| 893 | + |
| 894 | + |
| 895 | + |
861 | 896 | |
862 | 897 | |
863 | 898 | |
| ||
903 | 938 | |
904 | 939 | |
905 | 940 | |
906 | | - |
907 | | - |
908 | | - |
| 941 | + |
| 942 | + |
| 943 | + |
909 | 944 | |
910 | 945 | |
911 | 946 | |
| ||
933 | 968 | |
934 | 969 | |
935 | 970 | |
936 | | - |
| 971 | + |
937 | 972 | |
938 | 973 | |
939 | 974 | |
| ||
987 | 1022 | |
988 | 1023 | |
989 | 1024 | |
990 | | - |
| 1025 | + |
| 1026 | + |
| 1027 | + |
991 | 1028 | |
992 | 1029 | |
993 | 1030 | |
|
Collapse file
tests/unit/test_gitlab_http_methods.py
Copy file name to clipboardExpand all lines: tests/unit/test_gitlab_http_methods.py+34-8Lines changed: 34 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
1 | 3 | |
2 | 4 | |
3 | 5 | |
| ||
22 | 24 | |
23 | 25 | |
24 | 26 | |
25 | | - |
| 27 | + |
26 | 28 | |
27 | 29 | |
28 | 30 | |
29 | 31 | |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
30 | 52 | |
31 | 53 | |
32 | 54 | |
| ||
35 | 57 | |
36 | 58 | |
37 | 59 | |
38 | | - |
| 60 | + |
39 | 61 | |
40 | 62 | |
41 | 63 | |
| ||
50 | 72 | |
51 | 73 | |
52 | 74 | |
53 | | - |
| 75 | + |
54 | 76 | |
55 | 77 | |
56 | 78 | |
| ||
74 | 96 | |
75 | 97 | |
76 | 98 | |
77 | | - |
| 99 | + |
| 100 | + |
| 101 | + |
78 | 102 | |
79 | 103 | |
80 | 104 | |
| ||
99 | 123 | |
100 | 124 | |
101 | 125 | |
102 | | - |
| 126 | + |
103 | 127 | |
104 | 128 | |
105 | 129 | |
| ||
118 | 142 | |
119 | 143 | |
120 | 144 | |
121 | | - |
| 145 | + |
| 146 | + |
| 147 | + |
122 | 148 | |
123 | 149 | |
124 | 150 | |
| ||
181 | 207 | |
182 | 208 | |
183 | 209 | |
184 | | - |
| 210 | + |
185 | 211 | |
186 | 212 | |
187 | 213 | |
| ||
203 | 229 | |
204 | 230 | |
205 | 231 | |
206 | | - |
| 232 | + |
207 | 233 | |
208 | 234 | |
209 | 235 | |
|
0 commit comments