From a78743acfb687b80f2d3c0fcb8d4112522b3338f Mon Sep 17 00:00:00 2001 From: Christine Lytwynec Date: Wed, 29 Apr 2015 14:12:55 -0400 Subject: [PATCH] rename string formatting variable --- pavelib/paver_tests/test_paver_bok_choy_cmds.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pavelib/paver_tests/test_paver_bok_choy_cmds.py b/pavelib/paver_tests/test_paver_bok_choy_cmds.py index be6909480e..bd57345085 100644 --- a/pavelib/paver_tests/test_paver_bok_choy_cmds.py +++ b/pavelib/paver_tests/test_paver_bok_choy_cmds.py @@ -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()