Skip to content

Commit

Permalink
Remove unnecessary dag from operator util test
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkrida committed Oct 11, 2021
1 parent 4b70e98 commit 1992ba1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/dags/util/test_operator_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ def dated(dag_date):


def test_get_runner_operator_creates_valid_string():
dag = DAG(dag_id="test_dag", start_date=datetime.strptime("2019-01-01", "%Y-%m-%d"))
with dag:
runner = op_util.get_runner_operator("test_source", "/test/script/location.py")
expected_command = "python /test/script/location.py --mode default"
assert runner.bash_command == expected_command
runner = op_util.get_runner_operator("test_source", "/test/script/location.py")
expected_command = "python /test/script/location.py --mode default"
assert runner.bash_command == expected_command


def test_get_dated_main_runner_handles_zero_shift(capsys):
Expand Down

0 comments on commit 1992ba1

Please sign in to comment.