Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_geterror():
spice.setmsg("some error occured")
spice.sigerr("error")
assert spice.failed()
assert spice.getmsg("SHORT", 40) == "error"
assert spice.getmsg("LONG", 200) == "some error occured"
def test_geterror():
spice.setmsg("some error occured")
spice.sigerr("error")
assert spice.failed()
assert spice.getmsg("SHORT", 40) == "error"
assert spice.getmsg("LONG", 200) == "some error occured"
pass
class SpiceCKFILE(SpiceyPyError):
pass
class SpiceCKNONEXISTREC(SpiceyPyError):
pass
class SpiceCKUNKNOWNDATATYPE(SpiceyPyError):
pass
class SpiceCKWRONGDATATYPE(SpiceyPyError):
pass
class SpiceCLIBCALLFAILED(SpiceyPyError):
pass
class SpiceCLUSTERWRITEERROR(SpiceyPyError):
pass
class SpiceCMDERROR(SpiceyPyError):
pass
class SpiceCMDPARSEERROR(SpiceyPyError):
pass
class SpiceMARKERNOTFOUND(SpiceyPyError):
pass
class SpiceMISMATCHFROMTIMETYPE(SpiceyPyError):
pass
class SpiceMISMATCHOUTPUTFORMAT(SpiceyPyError):
pass
class SpiceMISMATCHTOTIMETYPE(SpiceyPyError):
pass
class SpiceMISSINGARGUMENTS(SpiceyPyError):
pass
class SpiceMISSINGCENTER(SpiceyPyError):
pass
class SpiceMISSINGCOLSTEP(SpiceyPyError):
pass
class SpiceMISSINGCOORDBOUND(SpiceyPyError):
pass
class SpiceWRITEFAILED(SpiceyPyError):
pass
class SpiceWRONGARCHITECTURE(SpiceyPyError):
pass
class SpiceWRONGCKTYPE(SpiceyPyError):
pass
class SpiceWRONGCONIC(SpiceyPyError):
pass
class SpiceWRONGSEGMENT(SpiceyPyError):
pass
class SpiceWRONGSPKTYPE(SpiceyPyError):
pass
class SpiceYEAROUTOFBOUNDS(SpiceyPyError):
pass
class SpiceZEROAXISLENGTH(SpiceyPyError):
pass
class SpiceINVALIDNUMBEROFINTERVALS(SpiceyPyError):
pass
class SpiceINVALIDNUMBEROFRECORDS(SpiceyPyError):
pass
class SpiceINVALIDNUMINT(SpiceyPyError):
pass
class SpiceINVALIDNUMREC(SpiceyPyError):
pass
class SpiceINVALIDRADII(SpiceyPyError):
pass
class SpiceINVALIDREFVAL(SpiceyPyError):
pass
class SpiceINVALIDSCALE(SpiceyPyError):
pass
class SpiceINVALIDSCLKRATE(SpiceyPyError):
pass
class SpiceNOSECONDLINE(SpiceyPyError):
pass
class SpiceNOSEGMENT(SpiceyPyError):
pass
class SpiceNOSLKFILENAME(SpiceyPyError):
pass
class SpiceNOSOLMARKER(SpiceyPyError):
pass
class SpiceNOSPACECRAFTID(SpiceyPyError):
pass
class SpiceNOSTARTTIME(SpiceyPyError):
pass
class SpiceNOSTOPTIME(SpiceyPyError):
pass
class SpiceNOSUCHHANDLE(SpiceyPyError):
pass
class SpiceFILEWRITEFAILED(SpiceyPyError):
pass
class SpiceFIRSTRECORDMISMATCH(SpiceyPyError):
pass
class SpiceFKDOESNTEXIST(SpiceyPyError):
pass
class SpiceFMTITEMLIMITEXCEEDED(SpiceyPyError):
pass
class SpiceFORMATDATAMISMATCH(SpiceyPyError):
pass
class SpiceFORMATDOESNTAPPLY(SpiceyPyError):
pass
class SpiceFORMATERROR(SpiceyPyError):
pass
class SpiceFORMATITEMLIMITEXCEEDED(SpiceyPyError):
pass
class SpiceINCOMPLETFRAME(SpiceyPyError):
pass
class SpiceINCONSISTCENTERID(SpiceyPyError):
pass
class SpiceINCONSISTELEMENTS(SpiceyPyError):
pass
class SpiceINCONSISTENTTIMES(SpiceyPyError):
pass
class SpiceINCONSISTFRAME(SpiceyPyError):
pass
class SpiceINCONSISTSTARTTIME(SpiceyPyError):
pass
class SpiceINCONSISTSTOPTIME(SpiceyPyError):
pass
class SpiceINCORRECTUSAGE(SpiceyPyError):
pass
class SpiceBADCURVETYPE(SpiceyPyError):
pass
class SpiceBADDAFTRANSFERFILE(SpiceyPyError):
pass
class SpiceBADDASDIRECTORY(SpiceyPyError):
pass
class SpiceBADDASFILE(SpiceyPyError):
pass
class SpiceBADDASTRANSFERFILE(SpiceyPyError):
pass
class SpiceBADDATALINE(SpiceyPyError):
pass
class SpiceBADDATAORDERTOKEN(SpiceyPyError):
pass
class SpiceBADDATATYPE(SpiceyPyError):