Skip to content
Myr

Fix CLI test for ImportError -> NoAppException

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ed Brannin · committed by Ed Brannin · parent 7a7a163 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/test_cli.py+1 added-1 removed
81 unmodified lines
82 assert locate_app("cliapp.multiapp:app1").name == "app1"83 pytest.raises(NoAppException, locate_app, "notanpp.py")84 pytest.raises(NoAppException, locate_app, "cliapp/app")85 pytest.raises(RuntimeError, locate_app, "cliapp.app:notanapp")86 pytest.raises(ImportError, locate_app, "cliapp.importerrorapp")86 pytest.raises(NoAppException, locate_app, "cliapp.importerrorapp")878889def test_find_default_import_path(test_apps, monkeypatch, tmpdir):90 """Test of find_default_import_path."""
120 unmodified lines