Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Remove unnecessary dag from operator util test

Zack Krida1992ba177f0d
diff --git a/tests/dags/util/test_operator_util.py b/tests/dags/util/test_operator_util.py
index e562554ec..b6f9f6651 100644
--- a/tests/dags/util/test_operator_util.py
+++ b/tests/dags/util/test_operator_util.py
@@ -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):