[codeface] [PATCH 05/27] Eliminate some references to Prosoda

  • From: <wolfgang.mauerer@xxxxxxxxxxxxxxxxx>
  • To: <codeface@xxxxxxxxxxxxx>
  • Date: Sun, 27 Sep 2015 02:28:01 +0200

From: Wolfgang Mauerer <wolfgang.mauerer@xxxxxxxxxxx>

We rename the tool years ago, but some things
tend to stick ;)

Signed-off-by: Wolfgang Mauerer <wolfgang.mauerer@xxxxxxxxxxxxxxxxx>
---
codeface/cli.py | 8 ++++----
codeface/project.py | 4 ++--
codeface/test/unit/test_logger.py | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/codeface/cli.py b/codeface/cli.py
index 092ff1e..d4297b3 100644
--- a/codeface/cli.py
+++ b/codeface/cli.py
@@ -45,7 +45,7 @@ def get_parser():
sub_parser = parser.add_subparsers(help='select action')
test_parser = sub_parser.add_parser('test', help='Run tests')
test_parser.set_defaults(func=cmd_test)
- test_parser.add_argument('-c', '--config', help="Prosoda configuration
file",
+ test_parser.add_argument('-c', '--config', help="Codeface configuration
file",
default='codeface_testing.conf')
test_parser.add_argument('-p', '--pattern', default="*",
help='run only tests matching the given pattern')
@@ -54,7 +54,7 @@ def get_parser():

run_parser = sub_parser.add_parser('run', help='Run analysis')
run_parser.set_defaults(func=cmd_run)
- run_parser.add_argument('-c', '--config', help="Prosoda configuration
file",
+ run_parser.add_argument('-c', '--config', help="Codeface configuration
file",
default='codeface.conf')
run_parser.add_argument(
'--tagging',
@@ -82,7 +82,7 @@ def get_parser():

ml_parser = sub_parser.add_parser('ml', help='Run mailing list analysis')
ml_parser.set_defaults(func=cmd_ml)
- ml_parser.add_argument('-c', '--config', help="Prosoda configuration file",
+ ml_parser.add_argument('-c', '--config', help="Codeface configuration
file",
default='codeface.conf')
ml_parser.add_argument('-p', '--project', help="Project configuration
file",
required=True)
@@ -96,7 +96,7 @@ def get_parser():

dyn_parser = sub_parser.add_parser('dynamic', help='Start R server for a
dynamic graph')
dyn_parser.set_defaults(func=cmd_dynamic)
- dyn_parser.add_argument('-c', '--config', help="Prosoda configuration
file",
+ dyn_parser.add_argument('-c', '--config', help="Codeface configuration
file",
default='codeface.conf')
dyn_parser.add_argument('graph', help="graph to show", default=None,
nargs='?')
dyn_parser.add_argument('-l', '--list', action="store_true", help="list
available graphs")
diff --git a/codeface/project.py b/codeface/project.py
index aa40562..9143cf0 100644
--- a/codeface/project.py
+++ b/codeface/project.py
@@ -191,7 +191,7 @@ def project_analyse(resdir, gitdir, codeface_conf,
project_conf,
cmd.extend(("-j", str(n_jobs)))
cmd.append(project_resdir)
execute_command(cmd, direct_io=True, cwd=cwd)
- log.info("=> Prosoda run complete!")
+ log.info("=> Codeface run complete!")

def mailinglist_analyse(resdir, mldir, codeface_conf, project_conf, loglevel,
logfile, jobs, mailinglists):
@@ -231,4 +231,4 @@ def mailinglist_analyse(resdir, mldir, codeface_conf,
project_conf, loglevel,
logargs = ["--logfile", "{}.R.ml.{}".format(logfile, i)]
execute_command([exe] + logargs + cmd + [ml["name"]],
direct_io=True, cwd=cwd)
- log.info("=> Prosoda mailing list analysis complete!")
+ log.info("=> Codeface mailing list analysis complete!")
diff --git a/codeface/test/unit/test_logger.py
b/codeface/test/unit/test_logger.py
index 55545a1..1dab50b 100644
--- a/codeface/test/unit/test_logger.py
+++ b/codeface/test/unit/test_logger.py
@@ -38,9 +38,9 @@ class TestLogger(unittest.TestCase):
RESET_SEQ = "\033[0m"
COLOR_SEQ = "\033[1;%dm"
BOLD_SEQ = "\033[1m"
- s = "Go\n$BOLDProsoda$RESET And do stuff"
- expected_ins = "Go\n\033[1mProsoda\033[0m And do stuff"
- expected_rem = "Go\nProsoda And do stuff"
+ s = "Go\n$BOLDCodeface$RESET And do stuff"
+ expected_ins = "Go\n\033[1mCodeface\033[0m And do stuff"
+ expected_rem = "Go\nCodeface And do stuff"
# Repeat the string five times to test repeated replacements
self.assertEqual(_insert_seqs(s*5), expected_ins*5)
self.assertEqual(_remove_seqs(s*5), expected_rem*5)
--
2.1.4


Other related posts:

  • » [codeface] [PATCH 05/27] Eliminate some references to Prosoda - wolfgang.mauerer