From 692d015627ecf03fbc23cfdb4afcf398b9a09a51 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 12 Jan 2012 17:26:28 +0100 Subject: scripts for testing and syntax unit test --- module/common/APIExerciser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/common') diff --git a/module/common/APIExerciser.py b/module/common/APIExerciser.py index 96f5ce9cf..657e83c78 100644 --- a/module/common/APIExerciser.py +++ b/module/common/APIExerciser.py @@ -114,7 +114,7 @@ class APIExerciser(Thread): name = "".join(sample(string.ascii_letters, 10)) urls = createURLs() - self.api.addPackage(name, urls, choice([Destination.Queue, Destination.Collector])) + self.api.addPackage(name, urls, choice([Destination.Queue, Destination.Collector]), "") def deleteFiles(self): @@ -154,4 +154,4 @@ class APIExerciser(Thread): self.api.getAccounts(False) def getCaptchaTask(self): - self.api.getCaptchaTask(False) \ No newline at end of file + self.api.getCaptchaTask(False) -- cgit v1.2.3 From b40b32ee05f611323a7827fad2a25fa0a28dcb24 Mon Sep 17 00:00:00 2001 From: X3n0m0rph59 Date: Sun, 22 Apr 2012 19:56:17 +0200 Subject: a huge pile of spelling fixes --- module/common/APIExerciser.py | 4 ++-- module/common/packagetools.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'module/common') diff --git a/module/common/APIExerciser.py b/module/common/APIExerciser.py index 657e83c78..ac6bc6c15 100644 --- a/module/common/APIExerciser.py +++ b/module/common/APIExerciser.py @@ -59,7 +59,7 @@ class APIExerciser(Thread): def run(self): - self.core.log.info("API Excerciser started %d" % self.id) + self.core.log.info("API Exerciser started %d" % self.id) out = open("error.log", "ab") #core errors are not logged of course @@ -70,7 +70,7 @@ class APIExerciser(Thread): try: self.testAPI() except Exception: - self.core.log.error("Excerciser %d throw an execption" % self.id) + self.core.log.error("Exerciser %d throw an exception" % self.id) print_exc() out.write(format_exc() + 2 * "\n") out.flush() diff --git a/module/common/packagetools.py b/module/common/packagetools.py index 5bfbcba95..791a46d51 100644 --- a/module/common/packagetools.py +++ b/module/common/packagetools.py @@ -21,7 +21,7 @@ def parseNames(files): """ Generates packages names from name, data lists :param files: list of (name, data) - :return: packagenames mapt to data lists (eg. urls) + :return: packagenames mapped to data lists (eg. urls) """ packs = {} @@ -64,7 +64,7 @@ def parseNames(files): if len(split) > 1: name = split.pop(1) - #check if a already existing package may be ok for this file + #check if an already existing package may be ok for this file # found = False # for pack in packs: # if pack in file: -- cgit v1.2.3