示例#1
0
 def write(self):
     try:
         sys.stdout.write(Writer.write(self.run()))
     except BaseException as e:
         log.logger.exception(e)
         return -1
     return 0
示例#2
0
 def write(self):
     try:
         sys.stdout.write(Writer.write(self.run()))
     except BaseException as e:
         log.logger.exception(e)
         return -1
     return 0
示例#3
0
    def test():
        environ['DBNAV_INPUT'] = path.join(dir, 'resources', tc)
        p, e = params(dir, tc), expected(dir, tc)
        items = f.run(['--debug', '-L', LOGFILE] + parameters + p)
        actual = Writer.write(items)
        write_actual(command, tc, actual)

        # WARNING: this is code that creates the expected output - only
        # uncomment when in need!
        # e = update_expected(dir, tc, actual)

        assert_equal(e, actual)
示例#4
0
    def test():
        environ['DBNAV_INPUT'] = path.join(dir, 'resources', tc)
        p, e = params(dir, tc), expected(dir, tc)
        items = f.run([
            '--debug',
            '-L', LOGFILE] + parameters + p)
        actual = Writer.write(items)
        write_actual(command, tc, actual)

        # WARNING: this is code that creates the expected output - only
        # uncomment when in need!
        # e = update_expected(dir, tc, actual)

        assert_equal(e, actual)
示例#5
0
 def write(self, items):
     sys.stdout.write(Writer.write(items))
     sys.stdout.write('\n')
示例#6
0
 def write(self, items):
     sys.stdout.write(Writer.write(items))
     sys.stdout.write('\n')