Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: remove duplicate/no-op tests from meta/test_ensure_type_hints#1707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 1 commit intomainfromjlvillal/reduce_meta_tests
Nov 24, 2021

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovosJohnVillalovos commentedNov 24, 2021
edited
Loading

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 ofpyproject.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 oftypes-toml.

To determine the test count the following command was run:
$ tox -e py39 -- -k test_ensure_type_hints

Copy link
Member

@nejchnejch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Didn't even realize before! Just a small note from me.

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_hints
@nejchnejch merged commit3225f2c intomainNov 24, 2021
@nejchnejch deleted the jlvillal/reduce_meta_tests branchNovember 24, 2021 21:00
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchnejch left review comments

@max-wittigmax-wittigAwaiting requested review from max-wittig

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@JohnVillalovos@nejch

[8]ページ先頭

©2009-2025 Movatter.jp