Commit f072d4f9 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[algorithms] Remove dependency check and add push failure test

The check is done prior to the dependency list enumeration.
parent 17a3cea9
......@@ -45,7 +45,6 @@ from beat.core.execution import DockerExecutor
from beat.core.dock import Host
from beat.core import hash
from beat.backend.python.algorithm import Storage as AlgorithmStorage
from beat.backend.python.algorithm import Algorithm
from . import common
from . import commands
......@@ -330,9 +329,7 @@ def execute_impl(prefix, cache, instructions_file):
def get_dependencies(ctx, asset_name):
prefix = ctx.meta["config"].path
alg = Algorithm(prefix, asset_name)
if not alg.valid:
raise RuntimeError("Invalid algortihm: {}".format(alg.errors))
alg = algorithm.Algorithm(prefix, asset_name)
dependencies = {}
......@@ -59,6 +59,7 @@ class TestOnline(core.OnlineAssetTestCase):
"fork": "user/forked_obj/1",
"push": "user/db_input_loop_processor/1",
"not_owner_push": "v1/integers_add/1",
"push_invalid": "errors/description_too_long/1",
def _modify_asset(self, asset_name):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment