forked fromDonJayamanne/pythonVSCode
- Notifications
You must be signed in to change notification settings - Fork1.2k
Commitbb6e909
authored
Test Coverage for older django versions (#24968)
Related to this issue:#24199@mcobalchinisoftfocus Discovered an issue with older django versions,which didn't have the main function in the manage.py#24927 (comment)I've fixed this issue by executing the code in manage.py with __name__set to __main__ instead of relying on main function being there.I've also adjusted the test, so that it would cover this case.1 parente9fb2bf commitbb6e909
File tree
3 files changed
+39
-22
lines changed- python_files
- tests/unittestadapter
- .data/simple_django
- unittestadapter
3 files changed
+39
-22
lines changedLines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + |
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
| 56 | + | |
56 | 57 |
| |
57 |
| - | |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 |
| - | |
| 61 | + | |
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
| |||
82 | 83 |
| |
83 | 84 |
| |
84 | 85 |
| |
85 |
| - | |
| 86 | + | |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
|
Lines changed: 14 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 | 4 |
| |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
| 9 | + | |
15 | 10 |
| |
16 | 11 |
| |
17 | 12 |
| |
| |||
75 | 70 |
| |
76 | 71 |
| |
77 | 72 |
| |
| 73 | + | |
78 | 74 |
| |
79 |
| - | |
| 75 | + | |
80 | 76 |
| |
81 | 77 |
| |
82 | 78 |
| |
| |||
89 | 85 |
| |
90 | 86 |
| |
91 | 87 |
| |
92 |
| - | |
| 88 | + | |
93 | 89 |
| |
94 | 90 |
| |
95 | 91 |
| |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 | 92 |
| |
105 |
| - | |
| 93 | + | |
106 | 94 |
| |
107 | 95 |
| |
108 | 96 |
| |
109 | 97 |
| |
110 | 98 |
| |
111 | 99 |
| |
112 | 100 |
| |
113 |
| - | |
114 |
| - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
115 | 110 |
| |
116 | 111 |
|
0 commit comments
Comments
(0)