Commit 8534bac6 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

assert products in dict type

parent 05708cc8
Pipeline #12038 passed with stage
in 0 seconds
...@@ -78,10 +78,9 @@ class CsstResult: ...@@ -78,10 +78,9 @@ class CsstResult:
assert isinstance( assert isinstance(
products, list products, list
), "`products` should be a list of `str` type objects." ), "`products` should be a list of `str` type objects."
for _ in products: assert isinstance(
assert isinstance( products, dict
_, str ), "`products` should be a list of `str` type objects."
), "`products` should be a list of `str` type objects."
for _ in files: for _ in files:
assert isinstance(_, str), "`files` should be a list of `str` type objects." assert isinstance(_, str), "`files` should be a list of `str` type objects."
self.status: CsstStatus = status self.status: CsstStatus = status
......
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