Пример #1
0
 def test_verbose(self, caplog):
     args = manage.get_args().parse_args(['--verbose', 'run'])
     manage.setup_verbosity(args)
     manage.log.debug('VISIBLE')
     assert 'VISIBLE' in caplog.text
Пример #2
0
 def test_parse_args(self):
     # just test that the arg parser is stable
     manage.get_args()
Пример #3
0
def test_verbose(caplog):
    args = manage.get_args().parse_args(["--verbose", "run"])
    manage.setup_verbosity(args)
    manage.log.debug("VISIBLE")
    assert "VISIBLE" in caplog.text
Пример #4
0
def test_not_verbose(caplog):
    args = manage.get_args().parse_args(['run'])
    manage.setup_verbosity(args)
    manage.log.debug('INVISIBLE')
    assert 'INVISIBLE' not in caplog.text
Пример #5
0
def test_not_verbose(caplog):
    args = manage.get_args().parse_args(["run"])
    manage.setup_verbosity(args)
    manage.log.debug("INVISIBLE")
    assert "INVISIBLE" not in caplog.text