diff --git a/avocado/core/dependencies/dependency.py b/avocado/core/dependencies/dependency.py index 2f77c5763c..46473d6e35 100644 --- a/avocado/core/dependencies/dependency.py +++ b/avocado/core/dependencies/dependency.py @@ -58,7 +58,7 @@ def __eq__(self, other): @classmethod def from_dictionary(cls, dictionary): return cls( - dictionary.pop("type", None), + dictionary.get("type", None), dictionary.pop("uri", None), dictionary.pop("args", ()), dictionary, diff --git a/selftests/functional/serial/requirements.py b/selftests/functional/serial/requirements.py index 6f6dbfb4ea..06ab5cf78c 100644 --- a/selftests/functional/serial/requirements.py +++ b/selftests/functional/serial/requirements.py @@ -134,8 +134,8 @@ def test_c(self): { "kind": "avocado-instrumented", "uri": "{path}", - "kwargs": {"dependencies": [{"type": "package", "name": "hello"}]} -} + "kwargs": {{"dependencies": [{{"type": "package", "name": "hello"}}]}} +}} """