deepsourcestatus / test-repository

Assert statement used outside of tests BAN-B101
Security
Major
1 occurrence in this check
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
 40
 41    def get_number(self, min_max=[1, 10]):
 42        """Get a random number between min and max."""
 43        assert all([isinstance(i, int) for i in min_max]) 44        return random.randint(*min_max)
 45
 46