def creator(): curr_dir = os.path.dirname(os.path.abspath(__file__)) output_dir = os.path.abspath( os.path.join(curr_dir, "..", "..", "output_dir")) creator = WebDriverCreator(output_dir) Creator = namedtuple("Creator", "creator, output_dir") return Creator(creator, output_dir)
def creator(): curr_dir = os.path.dirname(os.path.abspath(__file__)) output_dir = os.path.abspath( os.path.join(curr_dir, '..', '..', 'output_dir')) creator = WebDriverCreator(output_dir) Creator = namedtuple('Creator', 'creator, output_dir') return Creator(creator, output_dir)
def setUpClass(cls): cls.log_dir = '/log/dir' cls.creator = WebDriverCreator(cls.log_dir) path = os.path.dirname(__file__) if not JYTHON: reporter_json = os.path.abspath(os.path.join(path, '..', 'approvals_reporters.json')) factory = GenericDiffReporterFactory() factory.load(reporter_json) cls.reporter = factory.get_first_working()
def setUpClass(cls): cls.log_dir = "/log/dir" cls.creator = WebDriverCreator(cls.log_dir) path = os.path.dirname(__file__) reporter_json = os.path.abspath( os.path.join(path, "..", "approvals_reporters.json") ) factory = GenericDiffReporterFactory() factory.load(reporter_json) cls.reporter = factory.get_first_working()
def setUpClass(cls): cls.log_dir = '/log/dir' cls.creator = WebDriverCreator(cls.log_dir)
def creator(): return WebDriverCreator(LOG_DIR)
def creator(): curr_dir = os.path.dirname(os.path.abspath(__file__)) output_dir = os.path.abspath( os.path.join(curr_dir, '..', '..', 'output_dir')) return WebDriverCreator(output_dir)
def setUpClass(cls): curr_dir = os.path.dirname(os.path.abspath(__file__)) cls.output_dir = os.path.abspath( os.path.join(curr_dir, '..', '..', 'output_dir')) cls.creator = WebDriverCreator(cls.output_dir)
def setUpClass(cls): cls.creator = WebDriverCreator('/log/dir')