@bdd.given(bdd.parsers.parse('I set {sect} -> {opt} to {value}'))
def set_setting_given(quteproc, httpbin, sect, opt, value):
 if (value == '<empty>'):
  value = ''
 value = value.replace('(port)', str(httpbin.port))
 quteproc.set_setting(sect, opt, value)

@ bdd . given ( bdd . parsers . parse ( 'I set {sect} -> {opt} to {value}' ) ) def set_setting_given ( quteproc , httpbin , sect , opt , value ) : if ( value == '<empty>' ) : value = '' value = value . replace ( '(port)' , str ( httpbin . port ) ) quteproc . set_setting ( sect , opt , value )
set a qutebrowser setting .