summaryrefslogtreecommitdiff
path: root/test/test_codec.py
Commit message (Collapse)AuthorAgeFilesLines
* Add support for `zstd` compression (#2021)Tincu Gabriel2020-09-071-1/+10
|
* Cleanup handling of KAFKA_VERSION env var in tests (#1887)Jeff Widman2019-08-221-1/+1
| | | | | | | | | | | | | 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.
* Minor test cleanup (#1885)Jeff Widman2019-08-211-1/+1
| | | | Remove unused import, whitespace, etc. No functional changes, just cleaning it up so the diffs of later changes are cleaner.
* Cleanup fixture importsJeff Widman2018-10-271-1/+1
| | | | | | | | | | | | | | | `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.
* Vendor `six` consistentlyJeff Widman2018-10-221-6/+6
| | | | Use vendored `six`, and also `six.moves.range` rather than `xrange`
* Alter test skips: python-lz4 works on python26, but not pypyDana Powers2017-03-141-4/+9
|
* Use standard LZ4 framing for v1 messages / kafka 0.10 (#695)Dana Powers2016-05-221-0/+23
| | | | | | * LZ4 framing fixed in 0.10 / message v1 -- retain broken lz4 code for compatibility * lz4f does not support easy incremental decompression - raise RuntimeError * Update lz4 codec tests
* Update xerial snappy tests for new xerial defaultDana Powers2016-01-251-3/+5
|
* Convert codec tests to pytest; add simple lz4 testDana Powers2016-01-251-62/+75
|
* random_string helper should return str not bytesDana Powers2015-06-061-6/+6
|
* Merge conflict w/ assertEqual (assertEquals deprecated)Dana Powers2014-12-151-4/+4
|
* Merge pull request #227 from wizzat-feature/py3Dana Powers2014-09-071-17/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3 Support Conflicts: kafka/producer.py test/test_client.py test/test_client_integration.py test/test_codec.py test/test_consumer.py test/test_consumer_integration.py test/test_failover_integration.py test/test_producer.py test/test_producer_integration.py test/test_protocol.py test/test_util.py
| * Make all unit tests pass on py3.3/3.4Bruno Renié2014-09-031-11/+14
| |
| * Use base unittest or unittest2 depending on python versionBruno Renié2014-09-031-6/+6
| |
* | Cleanup tests: no more import *; remove unusedDana Powers2014-09-041-4/+1
|/
* Fix Python 2.6 supportMark Roberts2014-04-231-18/+6
|
* Split out kafka version environments, default tox no longer runs any ↵Mark Roberts2014-04-231-2/+1
| | | | integration tests, make skipped integration also skip setupClass, implement rudimentary offset support in consumer.py
* Add test support for multiple versions of kafka. Uncomment first 0.8.1 ↵Mark Roberts2014-04-231-1/+1
| | | | specific test. Add rudimentary (failing) consumer resumption test
* Reinstate test_integrate, make test_protocol more explicit, create testutilMark Roberts2014-04-081-12/+5
|
* Split test files, modify test_protocolMark Roberts2014-04-081-0/+90