Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_plugin(cls):
wpilib.DriverStation._reset()
plugin = PyFrcPlugin(cls, None, None)
plugin.pytest_runtest_setup()
try:
yield plugin, plugin.get_control()
finally:
plugin.pytest_runtest_teardown(None)