<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitlab.git/tests/unit/test_utils.py, branch renovate/gitlab</title>
<subtitle>github.com: gpocentek/python-gitlab.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/'/>
<entry>
<title>fix(client): properly parse content-type when charset is present</title>
<updated>2023-03-12T17:09:58+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>nejc.habjan@siemens.com</email>
</author>
<published>2023-03-12T16:28:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=76063c386ef9caf84ba866515cb053f6129714d9'/>
<id>76063c386ef9caf84ba866515cb053f6129714d9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: consolidate license and authors</title>
<updated>2022-08-05T06:14:14+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>nejc.habjan@siemens.com</email>
</author>
<published>2022-08-04T22:14:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=366665e89045eb24d47f730e2a5dea6229839e20'/>
<id>366665e89045eb24d47f730e2a5dea6229839e20</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: use the [] after key names for array variables in `params`</title>
<updated>2022-07-27T23:08:25+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2022-07-27T23:08:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=1af44ce8761e6ee8a9467a3e192f6c4d19e5cefe'/>
<id>1af44ce8761e6ee8a9467a3e192f6c4d19e5cefe</id>
<content type='text'>
1. If a value is of type ArrayAttribute then append '[]' to the name
   of the value for query parameters (`params`).

This is step 3 in a series of steps of our goal to add full
support for the GitLab API data types[1]:
  * array
  * hash
  * array of hashes

Step one was: commit 5127b1594c00c7364e9af15e42d2e2f2d909449b
Step two was: commit a57334f1930752c70ea15847a39324fa94042460

Fixes: #1698

[1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-types
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. If a value is of type ArrayAttribute then append '[]' to the name
   of the value for query parameters (`params`).

This is step 3 in a series of steps of our goal to add full
support for the GitLab API data types[1]:
  * array
  * hash
  * array of hashes

Step one was: commit 5127b1594c00c7364e9af15e42d2e2f2d909449b
Step two was: commit a57334f1930752c70ea15847a39324fa94042460

Fixes: #1698

[1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-types
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: avoid possible breaking change in iterator (#2107)</title>
<updated>2022-06-27T19:53:49+00:00</updated>
<author>
<name>John Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2022-06-27T19:53:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=212ddfc9e9c5de50d2507cc637c01ceb31aaba41'/>
<id>212ddfc9e9c5de50d2507cc637c01ceb31aaba41</id>
<content type='text'>
Commit b6447211754e126f64e12fc735ad74fe557b7fb4 inadvertently
introduced a possible breaking change as it added a new argument
`iterator` and added it in between existing (potentially positional) arguments.

This moves the `iterator` argument to the end of the argument list and
requires it to be a keyword-only argument.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit b6447211754e126f64e12fc735ad74fe557b7fb4 inadvertently
introduced a possible breaking change as it added a new argument
`iterator` and added it in between existing (potentially positional) arguments.

This moves the `iterator` argument to the end of the argument list and
requires it to be a keyword-only argument.</pre>
</div>
</content>
</entry>
<entry>
<title>feat(downloads): allow streaming downloads access to response iterator (#1956)</title>
<updated>2022-06-26T06:29:13+00:00</updated>
<author>
<name>Tom Catshoek</name>
<email>tomcatshoek@zeelandnet.nl</email>
</author>
<published>2022-06-26T06:29:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=b6447211754e126f64e12fc735ad74fe557b7fb4'/>
<id>b6447211754e126f64e12fc735ad74fe557b7fb4</id>
<content type='text'>
* feat(downloads): allow streaming downloads access to response iterator

Allow access to the underlying response iterator when downloading in
streaming mode by specifying `iterator=True`.

Update type annotations to support this change.

* docs(api-docs): add iterator example to artifact download

Document the usage of the `iterator=True` option when downloading
artifacts

* test(packages): add tests for streaming downloads</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* feat(downloads): allow streaming downloads access to response iterator

Allow access to the underlying response iterator when downloading in
streaming mode by specifying `iterator=True`.

Update type annotations to support this change.

* docs(api-docs): add iterator example to artifact download

Document the usage of the `iterator=True` option when downloading
artifacts

* test(packages): add tests for streaming downloads</pre>
</div>
</content>
</entry>
<entry>
<title>chore: have `EncodedId` creation always return `EncodedId`</title>
<updated>2022-05-31T23:07:42+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2022-05-31T23:07:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=a1a246fbfcf530732249a263ee42757a862181aa'/>
<id>a1a246fbfcf530732249a263ee42757a862181aa</id>
<content type='text'>
There is no reason to return an `int` as we can always return a `str`
version of the `int`

Change `EncodedId` to always return an `EncodedId`. This removes the
need to have `mypy` ignore the error raised.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no reason to return an `int` as we can always return a `str`
version of the `int`

Change `EncodedId` to always return an `EncodedId`. This removes the
need to have `mypy` ignore the error raised.
</pre>
</div>
</content>
</entry>
<entry>
<title>test(gitlab): increase unit test coverage</title>
<updated>2022-05-29T23:56:36+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-11-27T23:50:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=df072e130aa145a368bbdd10be98208a25100f89'/>
<id>df072e130aa145a368bbdd10be98208a25100f89</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(mixins): extract custom type transforms into utils</title>
<updated>2022-05-29T15:56:19+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>nejc.habjan@siemens.com</email>
</author>
<published>2022-05-07T23:14:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=09b3b2225361722f2439952d2dbee6a48a9f9fd9'/>
<id>09b3b2225361722f2439952d2dbee6a48a9f9fd9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: create a custom `warnings.warn` wrapper</title>
<updated>2022-02-06T19:37:51+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2022-02-06T19:37:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=6ca9aa2960623489aaf60324b4709848598aec91'/>
<id>6ca9aa2960623489aaf60324b4709848598aec91</id>
<content type='text'>
Create a custom `warnings.warn` wrapper that will walk the stack trace
to find the first frame outside of the `gitlab/` path to print the
warning against. This will make it easier for users to find where in
their code the error is generated from
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create a custom `warnings.warn` wrapper that will walk the stack trace
to find the first frame outside of the `gitlab/` path to print the
warning against. This will make it easier for users to find where in
their code the error is generated from
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: replace usage of utils._url_encode() with utils.EncodedId()</title>
<updated>2022-01-13T19:17:40+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2022-01-13T19:17:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=b07eece0a35dbc48076c9ec79f65f1e3fa17a872'/>
<id>b07eece0a35dbc48076c9ec79f65f1e3fa17a872</id>
<content type='text'>
utils.EncodedId() has basically the same functionalityy of using
utils._url_encode(). So remove utils._url_encode() as we don't need
it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
utils.EncodedId() has basically the same functionalityy of using
utils._url_encode(). So remove utils._url_encode() as we don't need
it.
</pre>
</div>
</content>
</entry>
</feed>
