<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitlab.git/tests, branch jlvillal/attribute_help</title>
<subtitle>github.com: gpocentek/python-gitlab.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/'/>
<entry>
<title>chore: attempt to be more informative for missing attributes</title>
<updated>2021-11-30T16:35:58+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-11-30T16:35:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=1839c9e7989163a5cc9a201241942b7faca6e214'/>
<id>1839c9e7989163a5cc9a201241942b7faca6e214</id>
<content type='text'>
A commonly reported issue from users on Gitter is that they get an
AttributeError for an attribute that should be present. This is often
caused due to the fact that they used the `list()` method to retrieve
the object and objects retrieved this way often only have a subset of
the full data.

Add more details in the AttributeError message that explains the
situation to users. This will hopefully allow them to resolve the
issue.

Update the FAQ in the docs to add a section discussing the issue.

Closes #1138
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A commonly reported issue from users on Gitter is that they get an
AttributeError for an attribute that should be present. This is often
caused due to the fact that they used the `list()` method to retrieve
the object and objects retrieved this way often only have a subset of
the full data.

Add more details in the AttributeError message that explains the
situation to users. This will hopefully allow them to resolve the
issue.

Update the FAQ in the docs to add a section discussing the issue.

Closes #1138
</pre>
</div>
</content>
</entry>
<entry>
<title>chore(tests): apply review suggestions</title>
<updated>2021-11-28T01:07:18+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-11-28T01:07:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=381c748415396e0fe54bb1f41a3303bab89aa065'/>
<id>381c748415396e0fe54bb1f41a3303bab89aa065</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test(cli): improve basic CLI coverage</title>
<updated>2021-11-27T20:08:47+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-11-27T19:28:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=6b892e3dcb18d0f43da6020b08fd4ba891da3670'/>
<id>6b892e3dcb18d0f43da6020b08fd4ba891da3670</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: add support for `projects.groups.list()`</title>
<updated>2021-11-27T04:19:51+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-11-26T19:54:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=68ff595967a5745b369a93d9d18fef48b65ebedb'/>
<id>68ff595967a5745b369a93d9d18fef48b65ebedb</id>
<content type='text'>
Add support for `projects.groups.list()` endpoint.

Closes #1717
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for `projects.groups.list()` endpoint.

Closes #1717
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: remove duplicate/no-op tests from meta/test_ensure_type_hints</title>
<updated>2021-11-24T20:48:56+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-11-24T18:37:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=a2f59f4e3146b8871a9a1d66ee84295b44321ecb'/>
<id>a2f59f4e3146b8871a9a1d66ee84295b44321ecb</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1693 from python-gitlab/jlvillay/mypy_test_meta</title>
<updated>2021-11-22T23:10:00+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-11-22T23:10:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=9b78c101309d201a4ff2d1ca7974a7c57cb1ad62'/>
<id>9b78c101309d201a4ff2d1ca7974a7c57cb1ad62</id>
<content type='text'>
chore: enable mypy for tests/meta/*</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
chore: enable mypy for tests/meta/*</pre>
</div>
</content>
</entry>
<entry>
<title>chore: correct test_groups.py test</title>
<updated>2021-11-20T06:31:02+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-11-20T06:07:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=9c878a4090ddb9c0ef63d06b57eb0e4926276e2f'/>
<id>9c878a4090ddb9c0ef63d06b57eb0e4926276e2f</id>
<content type='text'>
The test was checking twice if the same group3 was not in the returned
list.  Should have been checking for group3 and group4.

Also added a test that only skipped one group and checked that the
group was not in the returned list and a non-skipped group was in the
list.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test was checking twice if the same group3 was not in the returned
list.  Should have been checking for group3 and group4.

Also added a test that only skipped one group and checked that the
group was not in the returned list and a non-skipped group was in the
list.
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: enable mypy for tests/meta/*</title>
<updated>2021-11-16T22:59:20+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-11-16T22:53:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=ba7707f6161463260710bd2b109b172fd63472a1'/>
<id>ba7707f6161463260710bd2b109b172fd63472a1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: ensure get() methods have correct type-hints</title>
<updated>2021-11-15T22:31:12+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-11-07T22:33:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=46773a82565cef231dc3391c12f296ac307cb95c'/>
<id>46773a82565cef231dc3391c12f296ac307cb95c</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: create a 'tests/meta/' directory and put test_mro.py in it</title>
<updated>2021-11-15T22:31:08+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-11-15T22:10:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=94feb8a5534d43a464b717275846faa75783427e'/>
<id>94feb8a5534d43a464b717275846faa75783427e</id>
<content type='text'>
The 'test_mro.py' file is not really a unit test but more of a 'meta'
check on the validity of the code base.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The 'test_mro.py' file is not really a unit test but more of a 'meta'
check on the validity of the code base.
</pre>
</div>
</content>
</entry>
</feed>
