def testScreenInputs(self): seenCases = {} for testCase in screenTestCases: # make sure its not copy pasta-ed testName = testCase['name'] self.assertFalse(seenCases.get(testName, False), 'Already seen %s ' % testName) seenCases[testName] = True charInputs = ['q'] # we always quit at the end charInputs = testCase.get('inputs', []) + charInputs args = testCase.get('args', []) screenData = screenTestRunner.getRowsFromScreenRun( inputFile=testCase.get('input', 'gitDiff.txt'), charInputs=charInputs, screenConfig=testCase.get('screenConfig', {}), printScreen=False, pastScreen=testCase.get('pastScreen', None), pastScreens=testCase.get('pastScreens', None), args=args, validateFileExists=testCase.get('validateFileExists', False), allInput=('-ai' in args or '--all-input' in args), ) self.compareToExpected(testCase, testName, screenData) print('Tested %s ' % testName)
def testScreenInputs(self): seenCases = {} for testCase in screenTestCases: # make sure its not copy pasta-ed testName = testCase['name'] self.assertFalse( seenCases.get(testName, False), 'Already seen %s ' % testName) seenCases[testName] = True charInputs = ['q'] # we always quit at the end charInputs = testCase.get('inputs', []) + charInputs screenData = screenTestRunner.getRowsFromScreenRun( inputFile=testCase.get('input', 'gitDiff.txt'), charInputs=charInputs, screenConfig=testCase.get('screenConfig', {}), printScreen=False, pastScreen=testCase.get('pastScreen', None), pastScreens=testCase.get('pastScreens', None), args=testCase.get('args', []), validateFileExists=testCase.get('validateFileExists', False) ) self.compareToExpected(testCase, testName, screenData) print('Tested %s ' % testName)