Skip to content

Commit

Permalink
fix 6068:Make the test class dependencies fulfill all the tests.
Browse files Browse the repository at this point in the history
Signed-off-by: wangpeng <wangpengb@uniontech.com>
  • Loading branch information
wangpeng committed Dec 19, 2024
1 parent 9bc4760 commit a178230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion avocado/core/dependencies/dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions selftests/functional/serial/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}]}}
}}
"""


Expand Down

0 comments on commit a178230

Please sign in to comment.