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_faketime_1():
"""Test expiration"""
wpilib.DriverStation._reset()
ft = FakeTime()
ft.initialize()
ft.set_time_limit(5)
with pytest.raises(TestRanTooLong):
ft.increment_time_by(10)
def __time_test__(self):
if self.time_limit is not None and self.time_limit <= self.time:
raise TestRanTooLong()