Skip to content

Commit

Permalink
fix failed UT (merge issue again)
Browse files Browse the repository at this point in the history
  • Loading branch information
sv3ndk committed Dec 3, 2015
1 parent 30aa2ca commit 4b79156
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions tests/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,20 +358,6 @@ def test_doctests(self):
if failed:
raise Exception("Failed a doctest")

def test_default_config_gen(self):

cfg = configuration.default_config()

# making sure some basic building blocks are present:
assert "[core]" in cfg
assert "dags_folder" in cfg
assert "sql_alchemy_conn" in cfg
assert "fernet_key" in cfg

# making sure replacement actually happened
assert "{AIRFLOW_HOME}" not in cfg
assert "{FERNET_KEY}" not in cfg

def test_variable_set_get_round_trip(self):
Variable.set("tested_var_set_id", "Monday morning breakfast")
assert "Monday morning breakfast" == Variable.get("tested_var_set_id")
Expand All @@ -392,32 +378,6 @@ def test_get_non_existing_var_should_not_deserialize_json_default(self):
default_var=default_value,
deserialize_json=True)

def test_duplicate_dependencies(self):

regexp = "Dependency (.*)runme_0(.*)run_after_loop(.*) " \
"already registered"

with self.assertRaisesRegexp(AirflowException, regexp):
self.runme_0.set_downstream(self.run_after_loop)

with self.assertRaisesRegexp(AirflowException, regexp):
self.run_after_loop.set_upstream(self.runme_0)

def test_cyclic_dependencies_1(self):

regexp = "Cycle detected in DAG. (.*)runme_0(.*)"
with self.assertRaisesRegexp(AirflowException, regexp):
self.runme_0.set_upstream(self.run_after_loop)

def test_cyclic_dependencies_2(self):
regexp = "Cycle detected in DAG. (.*)runme_0(.*)"
with self.assertRaisesRegexp(AirflowException, regexp):
self.run_after_loop.set_downstream(self.runme_0)

def test_cyclic_dependencies_3(self):
regexp = "Cycle detected in DAG. (.*)runme_0(.*)"
with self.assertRaisesRegexp(AirflowException, regexp):
self.run_this_last.set_downstream(self.runme_0)

class CliTests(unittest.TestCase):

Expand Down

0 comments on commit 4b79156

Please sign in to comment.