rename string formatting variable
This commit is contained in:
@@ -17,18 +17,18 @@ class TestPaverBokChoyCmd(unittest.TestCase):
|
||||
shard = os.environ.get('SHARD')
|
||||
expected_statement = (
|
||||
"DEFAULT_STORE={default_store} "
|
||||
"SCREENSHOT_DIR='{repo_dir}/test_root/log{shard}' "
|
||||
"BOK_CHOY_HAR_DIR='{repo_dir}/test_root/log{shard}/hars' "
|
||||
"SELENIUM_DRIVER_LOG_DIR='{repo_dir}/test_root/log{shard}' "
|
||||
"SCREENSHOT_DIR='{repo_dir}/test_root/log{shard_str}' "
|
||||
"BOK_CHOY_HAR_DIR='{repo_dir}/test_root/log{shard_str}/hars' "
|
||||
"SELENIUM_DRIVER_LOG_DIR='{repo_dir}/test_root/log{shard_str}' "
|
||||
"nosetests {repo_dir}/common/test/acceptance/tests{exp_text} "
|
||||
"--with-xunit "
|
||||
"--xunit-file={repo_dir}/reports/bok_choy{shard}/xunit.xml "
|
||||
"--xunit-file={repo_dir}/reports/bok_choy{shard_str}/xunit.xml "
|
||||
"--verbosity=2 "
|
||||
).format(
|
||||
default_store=expected_default_store,
|
||||
repo_dir=REPO_DIR,
|
||||
exp_text=expected_text_append,
|
||||
shard='/shard_' + shard if shard else '',
|
||||
shard_str='/shard_' + shard if shard else '',
|
||||
)
|
||||
return expected_statement.strip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user