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

[test][core] Improve plural handling for plurals with complex structure.

parent 6c8da8c3
......@@ -71,6 +71,10 @@ class AssetLocalTest:
use_cache = kwargs.get("cache", "cache")
asset_type = kwargs.get("asset_type", cls.asset_type)
cmd_group = common.TYPE_PLURAL[asset_type]
if "/" in cmd_group:
cmd_group = cmd_group.split("/")[-1]
runner = CliRunner()
with runner.isolated_filesystem():
result = runner.invoke(
......@@ -87,7 +91,7 @@ class AssetLocalTest:
use_cache,
"--platform",
use_platform,
common.TYPE_PLURAL[asset_type],
cmd_group,
]
+ list(args),
catch_exceptions=False,
......
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