<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/kafka-python.git/test/test_consumer_integration.py, branch connection_delay_inf</title>
<subtitle>github.com: mumrah/kafka-python.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/'/>
<entry>
<title>Convert remaining `KafkaConsumer` tests to `pytest` (#1886)</title>
<updated>2019-08-23T04:14:37+00:00</updated>
<author>
<name>Jeff Widman</name>
<email>jeff@jeffwidman.com</email>
</author>
<published>2019-08-23T04:14:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=61fa0b27685c2d4e67d1b6575ca6797f36eb1bfa'/>
<id>61fa0b27685c2d4e67d1b6575ca6797f36eb1bfa</id>
<content type='text'>
This makes it so the only remaining use of `unittest` is in the old
tests of the deprecated `Simple*` clients. All `KafkaConsumer` tests are
migrated to `pytest`.

I also had to bump the test iterations up on one of the tests, I think there was a race condition there that was more commonly hit under pytest , planning to cleanup that in a followup PR. See https://github.com/dpkp/kafka-python/pull/1886#discussion_r316860737 for details.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes it so the only remaining use of `unittest` is in the old
tests of the deprecated `Simple*` clients. All `KafkaConsumer` tests are
migrated to `pytest`.

I also had to bump the test iterations up on one of the tests, I think there was a race condition there that was more commonly hit under pytest , planning to cleanup that in a followup PR. See https://github.com/dpkp/kafka-python/pull/1886#discussion_r316860737 for details.
</pre>
</div>
</content>
</entry>
<entry>
<title>Cleanup handling of KAFKA_VERSION env var in tests (#1887)</title>
<updated>2019-08-22T08:58:28+00:00</updated>
<author>
<name>Jeff Widman</name>
<email>jeff@jeffwidman.com</email>
</author>
<published>2019-08-22T08:58:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=98c005852e36fde0ef44a7b9c60a54f4686651af'/>
<id>98c005852e36fde0ef44a7b9c60a54f4686651af</id>
<content type='text'>
Now that we are using `pytest`, there is no need for a custom decorator
because we can use `pytest.mark.skipif()`.

This makes the code significantly simpler. In particular, dropping the
custom `@kafka_versions()` decorator is necessary because it uses
`func.wraps()` which doesn't play nice with `pytest` fixtures:
- https://github.com/pytest-dev/pytest/issues/677
- https://stackoverflow.com/a/19614807/770425

So this is a pre-requisite to migrating some of those tests to using
pytest fixtures.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we are using `pytest`, there is no need for a custom decorator
because we can use `pytest.mark.skipif()`.

This makes the code significantly simpler. In particular, dropping the
custom `@kafka_versions()` decorator is necessary because it uses
`func.wraps()` which doesn't play nice with `pytest` fixtures:
- https://github.com/pytest-dev/pytest/issues/677
- https://stackoverflow.com/a/19614807/770425

So this is a pre-requisite to migrating some of those tests to using
pytest fixtures.</pre>
</div>
</content>
</entry>
<entry>
<title>Use test.fixtures.version not test.conftest.version to avoid warnings (#1731)</title>
<updated>2019-03-07T03:10:29+00:00</updated>
<author>
<name>Dana Powers</name>
<email>dana.powers@gmail.com</email>
</author>
<published>2019-03-07T03:10:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=37699be51f868bd736e0fd595f2afc4c03b00ca4'/>
<id>37699be51f868bd736e0fd595f2afc4c03b00ca4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Migrate from `Unittest` to `pytest` (#1620)</title>
<updated>2018-11-10T20:48:33+00:00</updated>
<author>
<name>Jeff Widman</name>
<email>jeff@jeffwidman.com</email>
</author>
<published>2018-11-10T20:48:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=bb5bc1fcfc09c9c9994edbbae0af2ff6802c353d'/>
<id>bb5bc1fcfc09c9c9994edbbae0af2ff6802c353d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Cleanup fixture imports</title>
<updated>2018-10-27T09:17:23+00:00</updated>
<author>
<name>Jeff Widman</name>
<email>jeff@jeffwidman.com</email>
</author>
<published>2018-10-27T07:11:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=f00016e7cec64cfc9697b233809cd37e0e19cc64'/>
<id>f00016e7cec64cfc9697b233809cd37e0e19cc64</id>
<content type='text'>
`random_string` now comes from `test.fixtures` and was being
transparently imported via `test.testutil` so this bypasses the
pointless indirect import.

Similarly, `kafka_version` was transparently imported by `test.testutil`
from `test.fixtures`.

Also removed `random_port()` in `test.testutil` because its unused as its been replaced
by the one in `test.fixtures`.

This is part of the pytest migration that was started back in
a1869c4be5f47b4f6433610249aaf29af4ec95e5.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`random_string` now comes from `test.fixtures` and was being
transparently imported via `test.testutil` so this bypasses the
pointless indirect import.

Similarly, `kafka_version` was transparently imported by `test.testutil`
from `test.fixtures`.

Also removed `random_port()` in `test.testutil` because its unused as its been replaced
by the one in `test.fixtures`.

This is part of the pytest migration that was started back in
a1869c4be5f47b4f6433610249aaf29af4ec95e5.
</pre>
</div>
</content>
</entry>
<entry>
<title>Vendor `six` consistently</title>
<updated>2018-10-22T21:30:33+00:00</updated>
<author>
<name>Jeff Widman</name>
<email>jeff@jeffwidman.com</email>
</author>
<published>2018-10-22T08:24:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=b83feeca2ec6f6ad745fb7ea47c6484304bb55d8'/>
<id>b83feeca2ec6f6ad745fb7ea47c6484304bb55d8</id>
<content type='text'>
Use vendored `six`, and also `six.moves.range` rather than `xrange`
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use vendored `six`, and also `six.moves.range` rather than `xrange`
</pre>
</div>
</content>
</entry>
<entry>
<title>Add codec validators to record parser and builder for all formats (#1447)</title>
<updated>2018-04-18T20:51:07+00:00</updated>
<author>
<name>Taras</name>
<email>voyn1991@gmail.com</email>
</author>
<published>2018-03-18T13:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=908ac8f8d253b20d70e36ce4bae1aefb51769221'/>
<id>908ac8f8d253b20d70e36ce4bae1aefb51769221</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix skipped integration tests if KAFKA_VERSION unset (#1453)</title>
<updated>2018-03-23T01:10:32+00:00</updated>
<author>
<name>Dana Powers</name>
<email>dana.powers@gmail.com</email>
</author>
<published>2018-03-23T01:10:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=e8cb888629210b3c26748a5e2e61ab5df7b95933'/>
<id>e8cb888629210b3c26748a5e2e61ab5df7b95933</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Close KafkaConsumer instances during tests (#1410)</title>
<updated>2018-03-08T15:50:13+00:00</updated>
<author>
<name>Dana Powers</name>
<email>dana.powers@gmail.com</email>
</author>
<published>2018-03-08T15:50:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=4c383daf8a9d7aaa5049a98d7d6da19c85793d2d'/>
<id>4c383daf8a9d7aaa5049a98d7d6da19c85793d2d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce new fixtures to prepare for migration to pytest.</title>
<updated>2018-02-21T21:30:12+00:00</updated>
<author>
<name>Andre Araujo</name>
<email>asdaraujo@gmail.com</email>
</author>
<published>2017-11-15T14:08:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/kafka-python.git/commit/?id=a1869c4be5f47b4f6433610249aaf29af4ec95e5'/>
<id>a1869c4be5f47b4f6433610249aaf29af4ec95e5</id>
<content type='text'>
This commits adds new pytest fixtures in prepation for the
migration of unittest.TestCases to pytest test cases. The handling
of temporary dir creation was also changed so that we can use
the pytest tmpdir fixture after the migration.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commits adds new pytest fixtures in prepation for the
migration of unittest.TestCases to pytest test cases. The handling
of temporary dir creation was also changed so that we can use
the pytest tmpdir fixture after the migration.
</pre>
</div>
</content>
</entry>
</feed>
