Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
e961fc91
Commit
e961fc91
authored
May 07, 2019
by
Samuel GAIST
Browse files
[test][core] Improve plural handling for plurals with complex structure.
parent
6c8da8c3
Changes
1
Show whitespace changes
Inline
Side-by-side
beat/cmdline/test/core.py
View file @
e961fc91
...
@@ -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
,
c
ommon
.
TYPE_PLURAL
[
asset_type
]
,
c
md_group
,
]
]
+
list
(
args
),
+
list
(
args
),
catch_exceptions
=
False
,
catch_exceptions
=
False
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment