- Notifications
You must be signed in to change notification settings - Fork674
Commita2f59f4
committed
chore: remove duplicate/no-op tests from meta/test_ensure_type_hints
Before we were generating 725 tests for themeta/test_ensure_type_hints.py tests. Which isn't a huge concern asit was fairly fast. But when we had a failure we would usually get twofailures for each problem as the same test was being run multipletimes.Changed it so that: 1. Don't add tests that are not for *Manager classes 2. Use a set so that we don't have duplicate tests.After doing that our generated test count inmeta/test_ensure_type_hints.py went from 725 to 178 tests.Additionally removed the parsing of `pyproject.toml` to generate filesto ignore as we have finished adding type-hints to all files ingitlab/v4/objects/. This also means we no longer use the toml libraryso remove installation of `types-toml`.To determine the test count the following command was run: $ tox -e py39 -- -k test_ensure_type_hints1 parent7ba5995 commita2f59f4
2 files changed
+7
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 20 | + | |
| 21 | + | |
35 | 22 | | |
36 | 23 | | |
37 | 24 | | |
| |||
41 | 28 | | |
42 | 29 | | |
43 | 30 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 31 | | |
49 | 32 | | |
50 | 33 | | |
51 | 34 | | |
52 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
53 | 39 | | |
54 | | - | |
| 40 | + | |
55 | 41 | | |
56 | 42 | | |
57 | 43 | | |
| |||
0 commit comments
Comments
(0)