Skip to content

Unit tests emit deprecation warnings #357

@tseaver

Description

@tseaver
$ .nox/unit-3-8/bin/py.test tests/unit/
============================= test session starts ==============================
platform linux -- Python 3.8.1, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tseaver/projects/agendaless/Google/src/python-bigtable
plugins: cov-2.12.1, asyncio-0.15.1
collected 1315 items                                                           

tests/unit/test_app_profile.py .....................                     [  1%]
tests/unit/test_backup.py .............................................. [  5%]
..                                                                       [  5%]
tests/unit/test_batcher.py ........                                      [  5%]
tests/unit/test_client.py ....................................           [  8%]
tests/unit/test_cluster.py ..................                            [  9%]
tests/unit/test_column_family.py ....................................... [ 12%]
                                                                         [ 12%]
tests/unit/test_encryption_info.py ..............                        [ 13%]
tests/unit/test_error.py ...........                                     [ 14%]
tests/unit/test_instance.py ...................................          [ 17%]
tests/unit/test_policy.py ................                               [ 18%]
tests/unit/test_row.py ......................................            [ 21%]
tests/unit/test_row_data.py ............................................ [ 24%]
................................................................         [ 29%]
tests/unit/test_row_filters.py ......................................... [ 32%]
...........................................                              [ 36%]
tests/unit/test_row_set.py .......................                       [ 37%]
tests/unit/test_table.py ............................................... [ 41%]
.....................................                                    [ 44%]
tests/unit/gapic/bigtable_admin_v2/test_bigtable_instance_admin.py ..... [ 44%]
........................................................................ [ 50%]
........................................................................ [ 55%]
........................................................................ [ 61%]
.................s..s..ss.................................               [ 65%]
tests/unit/gapic/bigtable_admin_v2/test_bigtable_table_admin.py ........ [ 66%]
........................................................................ [ 71%]
........................................................................ [ 77%]
........................................................................ [ 82%]
.......................................................s..s..ss......... [ 88%]
............................                                             [ 90%]
tests/unit/gapic/bigtable_v2/test_bigtable.py .......................... [ 92%]
......................................................................s. [ 97%]
.s..ss.........................                                          [100%]

=============================== warnings summary ===============================
tests/unit/test_table.py::TestTable::test_row_factory_append
  /home/tseaver/projects/agendaless/Google/src/python-bigtable/tests/unit/test_table.py:248: PendingDeprecationWarning: This method will be deprecated in future versions. Please use Table.append_row(), Table.conditional_row() and Table.direct_row() methods instead.
    row = table.row(row_key, append=True)

tests/unit/test_table.py::TestTable::test_row_factory_conditional
  /home/tseaver/projects/agendaless/Google/src/python-bigtable/tests/unit/test_table.py:238: PendingDeprecationWarning: This method will be deprecated in future versions. Please use Table.append_row(), Table.conditional_row() and Table.direct_row() methods instead.
    row = table.row(row_key, filter_=filter_)

tests/unit/test_table.py::TestTable::test_row_factory_direct
  /home/tseaver/projects/agendaless/Google/src/python-bigtable/tests/unit/test_table.py:227: PendingDeprecationWarning: This method will be deprecated in future versions. Please use Table.append_row(), Table.conditional_row() and Table.direct_row() methods instead.
    row = table.row(row_key)

tests/unit/test_table.py::TestTable::test_row_factory_failure
  /home/tseaver/projects/agendaless/Google/src/python-bigtable/tests/unit/test_table.py:288: PendingDeprecationWarning: This method will be deprecated in future versions. Please use Table.append_row(), Table.conditional_row() and Table.direct_row() methods instead.
    table.row(row_key, filter_=object(), append=True)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
================ 1303 passed, 12 skipped, 4 warnings in 15.68s =================

Metadata

Metadata

Assignees

Labels

api: bigtableIssues related to the googleapis/python-bigtable API.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions