summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-11-24 10:37:13 -0800
committerJohn L. Villalovos <john@sodarock.com>2021-11-24 12:48:56 -0800
commita2f59f4e3146b8871a9a1d66ee84295b44321ecb (patch)
tree3f9a9727720d76e34e0ff78489132a3041df1110 /gitlab/cli.py
parent7ba5995ed472997e6bf98e8ae58107af307a5615 (diff)
downloadgitlab-a2f59f4e3146b8871a9a1d66ee84295b44321ecb.tar.gz
chore: remove duplicate/no-op tests from meta/test_ensure_type_hints
Before we were generating 725 tests for the meta/test_ensure_type_hints.py tests. Which isn't a huge concern as it was fairly fast. But when we had a failure we would usually get two failures for each problem as the same test was being run multiple times. 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 in meta/test_ensure_type_hints.py went from 725 to 178 tests. Additionally removed the parsing of `pyproject.toml` to generate files to ignore as we have finished adding type-hints to all files in gitlab/v4/objects/. This also means we no longer use the toml library so remove installation of `types-toml`. To determine the test count the following command was run: $ tox -e py39 -- -k test_ensure_type_hints
Diffstat (limited to 'gitlab/cli.py')
0 files changed, 0 insertions, 0 deletions