def test3Fn(): tempProf = InputProfile(tColorTableDefault, [defaultOceanColor]) precProf = InputProfile(pColorTableDefault, [defaultOceanColor]) outProf = readAndValidateKoppenOutputProfile(getParentDirPath('defaultOutputProfile')) outputPath = getTestDirPath('test3-out.png') tempnsPath, tempnwPath, precnsPath, precnwPath = getBoxesInputs() comparePath = getTestDirPath('BoxesOutputDefault.png') outputToFile(outputPath, buildOutput(tempnsPath, tempnwPath, precnsPath, precnwPath, tempProf, precProf, outProf)) return compareImages(outputPath, comparePath)
def test1Fn(): tempProf = InputProfile(tColorTableDefault, [defaultOceanColor]) precProf = InputProfile(pColorTableDefault, [defaultOceanColor]) outProf = OutputProfile(kColorTableDefault, defaultOceanColor, defaultUnknownColor) outputPath = getTestDirPath('test1-out.png') tempnsPath, tempnwPath, precnsPath, precnwPath = getProfiaInputs() comparePath = getTestDirPath('ProfiaOutputDefault.png') outputToFile(outputPath, buildOutput(tempnsPath, tempnwPath, precnsPath, precnwPath, tempProf, precProf, outProf)) return compareImages(outputPath, comparePath)
def test9Fn(): tempProf = InputProfile(tColorTableDefault, [defaultOceanColor]) precProf = readInputProfile(getParentDirPath('altPrecProfile')) outProf = OutputProfile(kColorTableDefault, defaultOceanColor, defaultUnknownColor) outputPath = getTestDirPath('test9-out.png') tempnsPath, tempnwPath, precnsPath, precnwPath = getBallInputs() comparePath = getTestDirPath('BallOutput.png') outputToFile(outputPath, buildOutput(tempnsPath, tempnwPath, precnsPath, precnwPath, tempProf, precProf, outProf)) return compareImages(outputPath, comparePath)
def test14Fn(): tempProf = InputProfile(tColorTableDefault, [defaultOceanColor]) precProf = InputProfile(pColorTableDefault, [defaultOceanColor]) outProf = readOutputProfile(getTestDirPath('testCustomColorOceanOutputProfile2')) outputPath = getTestDirPath('test14-out.png') tempnsPath, tempnwPath, precnsPath, precnwPath = getProfiaInputs() comparePath = getTestDirPath('ProfiaCustomOceanOutput.png') outputToFile(outputPath, buildOutput(tempnsPath, tempnwPath, precnsPath, precnwPath, tempProf, precProf, outProf)) return compareImages(outputPath, comparePath)
def test8Fn(): tempProf = readInputProfile(getParentDirPath('defaultTempProfile')) precProf = readInputProfile(getParentDirPath('defaultPrecProfile')) outProf = OutputProfile(kColorTableDefault, defaultOceanColor, defaultUnknownColor) outputPath = getTestDirPath('test8-out.png') tempnsPath, tempnwPath, precnsPath, precnwPath = getProfiaInputs() comparePath = getTestDirPath('ProfiaOutputDefault.png') outputToFile(outputPath, buildOutput(tempnsPath, tempnwPath, precnsPath, precnwPath, tempProf, precProf, outProf)) return compareImages(outputPath, comparePath)