def pytest_addoption(parser):
    group = parser.getgroup('kivy')
    group.addoption('--kivy-app-release', action='store_true', default=False, help='Whether to check after each test if the app is released and no references are kept to the app preventing it from being garbage collected.')
    group.addoption('--kivy-app-release-end', action='store_true', default=False, help='Whether to check at the end of all tests if all of the test appswere released and no references were kept to the app preventingthem from being garbage collected.')
def pytest_addoption(parser):
    group = parser.getgroup('kivy')
    group.addoption('--kivy-app-release', action='store_true', default=False, help='Whether to check after each test if the app is released and no references are kept to the app preventing it from being garbage collected.')
    group.addoption('--kivy-app-release-end', action='store_true', default=False, help='Whether to check at the end of all tests if all of the test appswere released and no references were kept to the app preventingthem from being garbage collected.')