def test_getreportopt(): class Config(object): class Option(object): reportchars = "" disable_warnings = True option = Option() config = Config() config.option.reportchars = "sf" assert getreportopt(config) == "sf" config.option.reportchars = "sfxw" assert getreportopt(config) == "sfx" config.option.reportchars = "sfx" config.option.disable_warnings = False assert getreportopt(config) == "sfxw" config.option.reportchars = "sfxw" config.option.disable_warnings = False assert getreportopt(config) == "sfxw"
def test_getreportopt(): class config: class option: reportchars = "" disablepytestwarnings = True config.option.report = "xfailed" assert getreportopt(config) == "x" config.option.report = "xfailed,skipped" assert getreportopt(config) == "xs" config.option.report = "skipped,xfailed" assert getreportopt(config) == "sx" config.option.report = "skipped" config.option.reportchars = "sfw" assert getreportopt(config) == "sf" config.option.reportchars = "sfxw" assert getreportopt(config) == "sfx" config.option.reportchars = "sfx" config.option.disablepytestwarnings = False assert getreportopt(config) == "sfxw" config.option.reportchars = "sfxw" config.option.disablepytestwarnings = False assert getreportopt(config) == "sfxw"
def test_getreportopt(): class config: class option: reportchars = "" disablepytestwarnings = True config.option.report = "xfailed" assert getreportopt(config) == "x" config.option.report = "xfailed,skipped" assert getreportopt(config) == "xs" config.option.report = "skipped,xfailed" assert getreportopt(config) == "sx" config.option.report = "skipped" config.option.reportchars = "sfw" assert getreportopt(config) == "sf" config.option.reportchars = "sfxw" assert getreportopt(config) == "sfx" config.option.reportchars = "sfx" config.option.disablepytestwarnings = False assert getreportopt(config) == "sfxw" config.option.reportchars = "sfxw" config.option.disablepytestwarnings = False assert getreportopt(config) == "sfxw"
def test_getreportopt(): class config: class option: reportchars = "" config.option.report = "xfailed" assert getreportopt(config) == "x" config.option.report = "xfailed,skipped" assert getreportopt(config) == "xs" config.option.report = "skipped,xfailed" assert getreportopt(config) == "sx" config.option.report = "skipped" config.option.reportchars = "sf" assert getreportopt(config) == "sf" config.option.reportchars = "sfx" assert getreportopt(config) == "sfx"
def test_getreportopt(): class config: class option: reportchars = "" disablepytestwarnings = True config.option.reportchars = "sf" assert getreportopt(config) == "sf" config.option.reportchars = "sfxw" assert getreportopt(config) == "sfx" config.option.reportchars = "sfx" config.option.disablepytestwarnings = False assert getreportopt(config) == "sfxw" config.option.reportchars = "sfxw" config.option.disablepytestwarnings = False assert getreportopt(config) == "sfxw"
def test_getreportopt(): class config: class option: reportchars = "" disablepytestwarnings = True config.option.reportchars = "sf" assert getreportopt(config) == "sf" config.option.reportchars = "sfxw" assert getreportopt(config) == "sfx" config.option.reportchars = "sfx" config.option.disablepytestwarnings = False assert getreportopt(config) == "sfxw" config.option.reportchars = "sfxw" config.option.disablepytestwarnings = False assert getreportopt(config) == "sfxw"
def test_getreportopt(): class config: class option: reportchars = "" config.option.report = "xfailed" assert getreportopt(config) == "x" config.option.report = "xfailed,skipped" assert getreportopt(config) == "xs" config.option.report = "skipped,xfailed" assert getreportopt(config) == "sx" config.option.report = "skipped" config.option.reportchars = "sf" assert getreportopt(config) == "sf" config.option.reportchars = "sfx" assert getreportopt(config) == "sfx"