Example #1
0
def test_run_with_reloader(good_mock_service, capsys):
    """Test that an app is run with the reloader."""
    cli.run('good_import:app', reloader=True)
    out, _ = capsys.readouterr()
    assert 'Running <Application: testing> with reloader' in out
    assert 'Run, Forrest, run!' in out
Example #2
0
def test_run_with_reloader(good_mock_service, capsys):
    """Test that an app is run with the reloader."""
    cli.run('good_import:app', reloader=True)
    out, _ = capsys.readouterr()
    assert 'Running <Application: testing> with reloader' in out
    assert 'Run, Forrest, run!' in out
Example #3
0
def test_run_forever(good_mock_service, capsys):
    """Test that run_forever is called on the imported app."""
    cli.run('good_import:app')
    out, _ = capsys.readouterr()
    assert 'Running <Application: testing> forever' in out
    assert 'Run, Forrest, run!' in out
Example #4
0
def test_run_forever(good_mock_service, capsys):
    """Test that run_forever is called on the imported app."""
    cli.run('good_import:app')
    out, _ = capsys.readouterr()
    assert 'Running <Application: testing> forever' in out
    assert 'Run, Forrest, run!' in out