Beispiel #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
Beispiel #2
0
 def test_parse_args(self):
     # just test that the arg parser is stable
     manage.get_args()
Beispiel #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
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
Beispiel #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