summaryrefslogtreecommitdiffstats
path: root/dovetail/cli/commands/cli_testcase.py
diff options
context:
space:
mode:
Diffstat (limited to 'dovetail/cli/commands/cli_testcase.py')
-rw-r--r--dovetail/cli/commands/cli_testcase.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/dovetail/cli/commands/cli_testcase.py b/dovetail/cli/commands/cli_testcase.py
index 05154882..3ae76c22 100644
--- a/dovetail/cli/commands/cli_testcase.py
+++ b/dovetail/cli/commands/cli_testcase.py
@@ -60,9 +60,7 @@ class CliTestcase(object):
click.echo("No testsuite defined yet in dovetail!!!")
def show_testcase(self, name):
- tc_path = os.path.join(
- constants.TESTCASE_PATH,
- "%s.yml" % (name[9:] if name.startswith('dovetail.') else name))
+ tc_path = os.path.join(constants.TESTCASE_PATH, "{}.yml".format(name))
if os.path.isfile(tc_path):
with open(tc_path, 'r') as stream:
try: