diff --git a/factories/TargetFactory.py b/factories/TargetFactory.py index a525941..024adff 100644 --- a/factories/TargetFactory.py +++ b/factories/TargetFactory.py @@ -2,7 +2,8 @@ from targets import * from targets.BankTarget import BankTarget class TargetFactory: - def createAllTargets(self): + @staticmethod + def createAllTargets(): result = dict() glo = globals() # Save globals so the dict does not change during execution of the script @@ -14,12 +15,13 @@ class TargetFactory: if 'Target' in key: result[key] = target() elif 'Bank' in key and 'Target' not in key: - targets = self.createBankTarget(target, key) + targets = TargetFactory.createBankTarget(target, key) result.update(targets) # todo check with driver? return result - def createBankTarget(self, target, key): + @staticmethod + def createBankTarget(target, key): bankTarget = target() targets = dict() targets[key] = bankTarget