diff options
author | snermolaev <snermolaev@yandex-team.com> | 2023-10-21 04:35:55 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2023-10-21 05:14:46 +0300 |
commit | 61e65e86eb9daac7be0a0d3dbca1686fbfb3dcae (patch) | |
tree | dd92d550d5798346a60563cfb2b36c2cb9f81e39 /build/plugins/tests | |
parent | 3223732c2dd456d88d3d71cc498ead9bce2ec185 (diff) | |
download | ydb-61e65e86eb9daac7be0a0d3dbca1686fbfb3dcae.tar.gz |
cleanup plugins
Diffstat (limited to 'build/plugins/tests')
-rw-r--r-- | build/plugins/tests/test_common.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/build/plugins/tests/test_common.py b/build/plugins/tests/test_common.py index 7847b8bb65..4c81a2ea93 100644 --- a/build/plugins/tests/test_common.py +++ b/build/plugins/tests/test_common.py @@ -1,4 +1,3 @@ -import pytest import _common as pc @@ -33,16 +32,3 @@ def test_filter_out_by_keyword(): assert pc.filter_out_by_keyword(['x', 'A', 'A', 'A', 'B', 'y'], 'A') == ['x', 'y'] assert pc.filter_out_by_keyword(['x', 'A', 'A', 'A', 'B', 'y', 'A'], 'A') == ['x', 'y'] assert pc.filter_out_by_keyword(['x', 'A', 'A', 'A', 'B', 'y', 'A', 'F', 'z'], 'A') == ['x', 'y', 'z'] - - -test_data = [ - [[1, 2, 3], 1, [[1], [2], [3]]], - [[1, 2, 3], 2, [[1, 2], [3]]], - [[1, 2, 3, 4], 2, [[1, 2], [3, 4]]], - [[1], 5, [[1]]], -] - - -@pytest.mark.parametrize('lst, chunk_size, expected', test_data, ids=[str(num + 1) for num in range(len(test_data))]) -def test_generate_chunks(lst, chunk_size, expected): - assert list(pc.generate_chunks(lst, chunk_size)) == expected |