Skip to content

Commit

Permalink
Replace getattr() with simple attribute access
Browse files Browse the repository at this point in the history
  • Loading branch information
nhojjohn authored and josh-fell committed May 27, 2022
1 parent 50747ad commit 643465d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/providers/papermill/operators/test_papermill.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def test_render_template(self):
ti.dag_run = DagRun(execution_date=DEFAULT_DATE)
ti.render_templates()

assert "/tmp/test_render_template.ipynb" == getattr(operator, 'input_nb')
assert '/tmp/out-test_render_template.ipynb' == getattr(operator, 'output_nb')
assert {"msgs": "dag id is test_render_template!"} == getattr(operator, 'parameters')
assert "python3" == getattr(operator, 'kernel_name')
assert "python" == getattr(operator, 'language_name')
assert "/tmp/test_render_template.ipynb" == operator.input_nb
assert '/tmp/out-test_render_template.ipynb' == operator.output_nb
assert {"msgs": "dag id is test_render_template!"} == operator.parameters
assert "python3" == operator.kernel_name
assert "python" == operator.language_name

0 comments on commit 643465d

Please sign in to comment.