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