def no_backend(test_func, backend):
 if (settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'].rsplit('.')[(-1)] == backend):
  @unittest.skip(("This test is skipped on '%s' backend" % backend))
  def inner():
   pass
  return inner
 else:
  return test_func

def no_backend ( test_func , backend ) : if ( settings . DATABASES [ DEFAULT_DB_ALIAS ] [ 'ENGINE' ] . rsplit ( '.' ) [ ( - 1 ) ] == backend ) : @ unittest . skip ( ( "This test is skipped on '%s' backend" % backend ) ) def inner ( ) : pass return inner else : return test_func
use this decorator to disable test on specified backend .