diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-09-25 14:49:26 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-09-25 16:36:23 +0300 |
commit | aabffb0dd8246769b2b1e18135a3f071054c5ffb (patch) | |
tree | 9335b03dc2040ba31052cbc3b0018b4f32f61565 | |
parent | 8d75e621e2c9f0c856b5009013978eab7ebb7425 (diff) | |
download | ydb-aabffb0dd8246769b2b1e18135a3f071054c5ffb.tar.gz |
Change "test_storage_config.py"
-rw-r--r-- | ydb/tests/functional/tenants/test_storage_config.py | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/ydb/tests/functional/tenants/test_storage_config.py b/ydb/tests/functional/tenants/test_storage_config.py index 62e8eb6233..fe87b3e75b 100644 --- a/ydb/tests/functional/tenants/test_storage_config.py +++ b/ydb/tests/functional/tenants/test_storage_config.py @@ -112,25 +112,27 @@ def case_0(): creation_options.partition_config.with_partitioning_policy(0) # for now external blobs and autosplit not compatible has_external = True - scheme = lambda table_name: has_item( - has_properties( - TableName='__user__{}'.format(table_name), - ColumnFamilies={ - 0: {'Large': 524288, - 'Cache': 0, - 'InMemory': False, - 'Codec': 0, - 'Small': 4294967295, - 'RoomID': 0, - 'Columns': [1, 2]} - }, - Rooms={ - 0: {'Main': 1, - 'Outer': 1, - 'Blobs': 1} - } + + def scheme(table_name): + return has_item( + has_properties( + TableName='__user__{}'.format(table_name), + ColumnFamilies={ + 0: {'Large': 524288, + 'Cache': 0, + 'InMemory': False, + 'Codec': 0, + 'Small': 4294967295, + 'RoomID': 0, + 'Columns': [1, 2]} + }, + Rooms={ + 0: {'Main': 1, + 'Outer': 1, + 'Blobs': 1} + } + ) ) - ) return (creation_options, has_external, scheme) |