Skip to content

Comments

Fix parameters not passed in BigQueryColumnCheckOperator test#28801

Merged
eladkal merged 1 commit intoapache:mainfrom
vchiapaikeo:vchiapaikeo/fix-bq-column-check-op-v2
Jan 10, 2023
Merged

Fix parameters not passed in BigQueryColumnCheckOperator test#28801
eladkal merged 1 commit intoapache:mainfrom
vchiapaikeo:vchiapaikeo/fix-bq-column-check-op-v2

Conversation

@vchiapaikeo
Copy link
Contributor

Fixes a minor issue in a previous commit of mine with the BigQueryColumnCheckOperator fail test where parameters are not being properly passed through. Copy and paste error here. Sorry!

In breeze shell:

root@6b51158cc469:/opt/airflow# pytest -v tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails
/usr/local/lib/python3.7/site-packages/pytest_asyncio/plugin.py:177: DeprecationWarning: You're using an outdated version of pytest. Newer releases of pytest-asyncio will not be compatible with this pytest version. Please update pytest to version 7 or later.
  DeprecationWarning,
========================================================== test session starts ===========================================================
platform linux -- Python 3.7.16, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /opt/airflow, configfile: pytest.ini
plugins: time-machine-2.9.0, asyncio-0.20.3, xdist-3.1.0, timeouts-1.2.1, capture-warnings-0.0.4, anyio-3.6.2, requests-mock-1.10.0, cov-4.0.0, instafail-0.4.2, httpx-0.21.2, rerunfailures-9.1.1
asyncio: mode=strict
setup timeout: 0.0s, execution timeout: 0.0s, teardown timeout: 0.0s
collected 5 items

tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[equal_to-0-1] PASSED            [ 20%]
tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[greater_than-0--1] PASSED       [ 40%]
tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[less_than-0-1] PASSED           [ 60%]
tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[geq_to-0--1] PASSED             [ 80%]
tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[leq_to-0-1] PASSED              [100%]

============================================================ warnings summary ============================================================
tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[equal_to-0-1]
tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[equal_to-0-1]
  /usr/local/lib/python3.7/site-packages/connexion/decorators/validation.py:16: DeprecationWarning: Accessing jsonschema.draft4_format_checker is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator.
    from jsonschema import Draft4Validator, ValidationError, draft4_format_checker

tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[equal_to-0-1]
  /opt/airflow/airflow/example_dags/example_sensor_decorator.py:64: RemovedInAirflow3Warning: Param `schedule_interval` is deprecated and will be removed in a future release. Please use `schedule` instead.
    tutorial_etl_dag = example_sensor_decorator()

tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[equal_to-0-1]
  /opt/airflow/airflow/example_dags/example_subdag_operator.py:45: RemovedInAirflow3Warning: This class is deprecated. Please use `airflow.utils.task_group.TaskGroup`.
    subdag=subdag(DAG_NAME, "section-1", dag.default_args),

tests/providers/google/cloud/operators/test_bigquery.py::test_bigquery_column_check_operator_fails[equal_to-0-1]
  /opt/airflow/airflow/example_dags/example_subdag_operator.py:54: RemovedInAirflow3Warning: This class is deprecated. Please use `airflow.utils.task_group.TaskGroup`.
    subdag=subdag(DAG_NAME, "section-2", dag.default_args),

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================== 5 passed, 5 warnings in 18.96s =====================================================

cc @eladkal


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Jan 9, 2023
@eladkal eladkal merged commit 07a17ba into apache:main Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants