tmt/utils.py
def status(self, status=None):
        """ Get and set current status, store in workdir """
        # Check for valid values
        if status and status not in ['todo', 'done', 'going']:
            raise GeneralError(f"Invalid status '{status}'.")
        # Store status
        if status:
            self.write('status.txt', status + '\n')
        # Read status
        else:
            try:
                return self.read('status.txt').strip()
            except GeneralError:
                return None
 Get and set current status, store in workdir 
Get and set current status, store in workdir
Get and set current status store in workdir
def status(self, status=None):
        if status and status not in ['todo', 'done', 'going']:
            raise GeneralError(f"Invalid status '{status}'.")
        if status:
            self.write('status.txt', status + '\n')
        else:
            try:
                return self.read('status.txt').strip()
            except GeneralError:
                return None
def status ( self , status = None ) : if status and status not in [ 'todo' , 'done' , 'going' ] : raise GeneralError ( f"Invalid status '{status}'." ) if status : self . write ( 'status.txt' , status + '\n' ) else : try : return self . read ( 'status.txt' ) . strip ( ) except GeneralError : return None
Get and set current status, store in workdir
Get and set current status store in workdir
""" Get and set current status, store in workdir """ # Check for valid values # Store status # Read status
self
status