-
Notifications
You must be signed in to change notification settings - Fork 670
Ensure get() methods have correct type-hints #1681
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea so that people get a helpful message to guide them, because this can get quite complex for new contributors I think.
For me this (and test_mro.py
) are kind of almost meta tests, so I wonder if we should move them together with test_dists.py
or so (all the other modules in objects/
really test functions on gitlab resources).
3df0d8a
to
8fcec4b
Compare
8fcec4b
to
196c6e1
Compare
Moving them works for me. I had put them in If we move them, where do you think we should move them. |
196c6e1
to
5e54d67
Compare
5e54d67
to
c78e9de
Compare
I was thinking maybe https://github.com/python-gitlab/python-gitlab/tree/main/tests/smoke along with |
42726c9
to
ae68668
Compare
I created a new |
b14212b
to
7910780
Compare
Codecov Report
@@ Coverage Diff @@
## main #1681 +/- ##
==========================================
- Coverage 91.88% 91.55% -0.33%
==========================================
Files 75 75
Lines 4435 4571 +136
==========================================
+ Hits 4075 4185 +110
- Misses 360 386 +26
Flags with carried forward coverage won't be shown. Click here to find out more.
|
The 'test_mro.py' file is not really a unit test but more of a 'meta' check on the validity of the code base.
Fix classes which don't have correct 'get()' methods for classes derived from GetMixin. Add a unit test which verifies that classes have the correct return type in their 'get()' method.
7910780
to
46773a8
Compare
Fix classes which don't have correct 'get()' methods for classes
derived from GetMixin.
Add a unit test which verifies that classes have the correct return
type in their 'get()' method.