<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitlab.git/tests/unit/test_gitlab.py, branch jlvillal/missing_comma</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: handle situation where GitLab does not return values</title>
<updated>2021-12-30T20:34:50+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-30T20:34:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=cb824a49af9b0d155b89fe66a4cfebefe52beb7a'/>
<id>cb824a49af9b0d155b89fe66a4cfebefe52beb7a</id>
<content type='text'>
If a query returns more than 10,000 records than the following values
are NOT returned:
  x.total_pages
  x.total

Modify the code to allow no value to be set for these values. If there
is not a value returned the functions will now return None.

Update unit test so no longer `xfail`

https://docs.gitlab.com/ee/user/gitlab_com/index.html#pagination-response-headers

Closes #1686
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a query returns more than 10,000 records than the following values
are NOT returned:
  x.total_pages
  x.total

Modify the code to allow no value to be set for these values. If there
is not a value returned the functions will now return None.

Update unit test so no longer `xfail`

https://docs.gitlab.com/ee/user/gitlab_com/index.html#pagination-response-headers

Closes #1686
</pre>
</div>
</content>
</entry>
<entry>
<title>test: reproduce missing pagination headers in tests</title>
<updated>2021-12-30T19:26:38+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-30T14:35:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=501f9a1588db90e6d2c235723ba62c09a669b5d2'/>
<id>501f9a1588db90e6d2c235723ba62c09a669b5d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test: drop httmock dependency in test_gitlab.py</title>
<updated>2021-12-30T17:20:39+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-30T11:08:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=c764bee191438fc4aa2e52d14717c136760d2f3f'/>
<id>c764bee191438fc4aa2e52d14717c136760d2f3f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: use constants from gitlab.const module</title>
<updated>2021-11-30T16:37:53+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-11-30T16:37:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=6b8067e668b6a37a19e07d84e9a0d2d2a99b4d31'/>
<id>6b8067e668b6a37a19e07d84e9a0d2d2a99b4d31</id>
<content type='text'>
Have code use constants from the gitlab.const module instead of from
the top-level gitlab module.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Have code use constants from the gitlab.const module instead of from
the top-level gitlab module.
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: deprecate accessing constants from top-level namespace</title>
<updated>2021-11-30T16:37:46+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-11-30T16:37:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=c0aa0e1c9f7d7914e3062fe6503da870508b27cf'/>
<id>c0aa0e1c9f7d7914e3062fe6503da870508b27cf</id>
<content type='text'>
We are planning on adding enumerated constants into gitlab/const.py,
but if we do that than they will end up being added to the top-level
gitlab namespace. We really want to get users to start using
`gitlab.const.` to access the constant values in the future.

Add the currently defined constants to a list that should not change.
Use a module level __getattr__ function so that we can deprecate
access to the top-level constants.

Add a unit test which verifies we generate a warning when accessing
the top-level constants.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We are planning on adding enumerated constants into gitlab/const.py,
but if we do that than they will end up being added to the top-level
gitlab namespace. We really want to get users to start using
`gitlab.const.` to access the constant values in the future.

Add the currently defined constants to a list that should not change.
Use a module level __getattr__ function so that we can deprecate
access to the top-level constants.

Add a unit test which verifies we generate a warning when accessing
the top-level constants.
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: use f-strings for string formatting</title>
<updated>2021-11-06T03:45:01+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-11-01T18:22:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=7925c902d15f20abaecdb07af213f79dad91355b'/>
<id>7925c902d15f20abaecdb07af213f79dad91355b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: default to gitlab.com if no URL given</title>
<updated>2021-09-08T20:45:27+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-01-31T18:17:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=823628153ec813c4490e749e502a47716425c0f1'/>
<id>823628153ec813c4490e749e502a47716425c0f1</id>
<content type='text'>
BREAKING CHANGE: python-gitlab will now default to gitlab.com
if no URL is given
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BREAKING CHANGE: python-gitlab will now default to gitlab.com
if no URL is given
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: move 'gitlab/tests/' dir to 'tests/unit/'</title>
<updated>2021-05-27T04:04:31+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-05-27T04:04:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=1ac0722bc086b18c070132a0eb53747bbdf2ce0a'/>
<id>1ac0722bc086b18c070132a0eb53747bbdf2ce0a</id>
<content type='text'>
Move the 'gitlab/tests/' directory to 'tests/unit/' so we have all the
tests located under the 'tests/' directory.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move the 'gitlab/tests/' directory to 'tests/unit/' so we have all the
tests located under the 'tests/' directory.
</pre>
</div>
</content>
</entry>
</feed>
