def test(context: Context, test_labels=None, functional_tests=False, accessibility_tests=False, webdriver=None):
    """
    Tests the app
    """
    if accessibility_tests:
        functional_tests = True
        os.environ['RUN_ACCESSIBILITY_TESTS'] = '1'
    if functional_tests:
        os.environ['RUN_FUNCTIONAL_TESTS'] = '1'
    if webdriver:
        os.environ['WEBDRIVER'] = webdriver
    test_labels = (test_labels or '').split()
    return context.management_command('test', args=test_labels, interactive=False)
def test ( context : Context , test_labels = None , functional_tests = False , accessibility_tests = False , webdriver = None ) : if accessibility_tests : functional_tests = True os . environ [ 'RUN_ACCESSIBILITY_TESTS' ] = '1' if functional_tests : os . environ [ 'RUN_FUNCTIONAL_TESTS' ] = '1' if webdriver : os . environ [ 'WEBDRIVER' ] = webdriver test_labels = ( test_labels or '' ) . split ( ) return context . management_command ( 'test' , args = test_labels , interactive = False )
Tests the app