This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 7f0271f Improve test coverage for ConfObject in dag_run_schema
(#10738)
7f0271f is described below
commit 7f0271f820e2a215bba71d0cd5f2e5c2bade948c
Author: Kaxil Naik <[email protected]>
AuthorDate: Sat Sep 5 07:55:12 2020 +0100
Improve test coverage for ConfObject in dag_run_schema (#10738)
Adds test to verify that string can be passed to conf and
ConfObject._deserialize works.
---
tests/api_connexion/schemas/test_dag_run_schema.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/api_connexion/schemas/test_dag_run_schema.py
b/tests/api_connexion/schemas/test_dag_run_schema.py
index ca48cc6..81072ec 100644
--- a/tests/api_connexion/schemas/test_dag_run_schema.py
+++ b/tests/api_connexion/schemas/test_dag_run_schema.py
@@ -81,6 +81,10 @@ class TestDAGRunSchema(TestDAGRunBase):
{"dag_run_id": "my-dag-run", "execution_date": DEFAULT_TIME,
"conf": {"start": "stop"},},
{"run_id": "my-dag-run", "execution_date":
parse(DEFAULT_TIME), "conf": {"start": "stop"},},
),
+ (
+ {"dag_run_id": "my-dag-run", "execution_date": DEFAULT_TIME,
"conf": '{"start": "stop"}',},
+ {"run_id": "my-dag-run", "execution_date":
parse(DEFAULT_TIME), "conf": {"start": "stop"},},
+ ),
]
)
def test_deserialize(self, serialized_dagrun, expected_result):