diff --git a/docs/scripts/patch_devsite_toc.py b/docs/scripts/patch_devsite_toc.py index 78cc6fd39..c794a0a90 100644 --- a/docs/scripts/patch_devsite_toc.py +++ b/docs/scripts/patch_devsite_toc.py @@ -195,9 +195,7 @@ def validate_toc(toc_file_path, expected_section_list, added_sections): # Add secrtions for the async_data_client and classic_client directories toc_path = "_build/html/docfx_yaml/toc.yml" custom_sections = [ - TocSection( - dir_name="data_client", index_file_name="usage.rst" - ), + TocSection(dir_name="data_client", index_file_name="usage.rst"), TocSection(dir_name="classic_client", index_file_name="usage.rst"), ] add_sections(toc_path, custom_sections) diff --git a/google/cloud/bigtable/data/execute_query/__init__.py b/google/cloud/bigtable/data/execute_query/__init__.py index ac49355ae..31fd5e3cc 100644 --- a/google/cloud/bigtable/data/execute_query/__init__.py +++ b/google/cloud/bigtable/data/execute_query/__init__.py @@ -29,6 +29,7 @@ Struct, ) from google.cloud.bigtable.data._cross_sync import CrossSync + CrossSync.add_mapping("ExecuteQueryIterator", ExecuteQueryIteratorAsync) CrossSync._Sync_Impl.add_mapping("ExecuteQueryIterator", ExecuteQueryIterator) diff --git a/tests/unit/data/test_sync_up_to_date.py b/tests/unit/data/test_sync_up_to_date.py index 66d9a1619..492d35ddf 100644 --- a/tests/unit/data/test_sync_up_to_date.py +++ b/tests/unit/data/test_sync_up_to_date.py @@ -29,6 +29,7 @@ sync_files = list(convert_files_in_dir(repo_root)) + def test_found_files(): """ Make sure sync_test is populated with some of the files we expect to see, @@ -42,7 +43,9 @@ def test_found_files(): assert "execute_query_iterator.py" in outputs assert "test_client.py" in outputs assert "test_system_autogen.py" in outputs, "system tests not found" - assert "client_handler_data_sync_autogen.py" in outputs, "test proxy handler not found" + assert ( + "client_handler_data_sync_autogen.py" in outputs + ), "test proxy handler not found" @pytest.mark.skipif( @@ -63,7 +66,9 @@ def test_sync_up_to_date(sync_file): # compare by content diff = unified_diff(found_render.splitlines(), new_render.splitlines(), lineterm="") diff_str = "\n".join(diff) - assert not diff_str, f"Found differences. Run `nox -s generate_sync` to update:\n{diff_str}" + assert ( + not diff_str + ), f"Found differences. Run `nox -s generate_sync` to update:\n{diff_str}" # compare by hash new_hash = hashlib.md5(new_render.encode()).hexdigest() found_hash = hashlib.md5(found_render.encode()).hexdigest()