<reponame>hnesk/core
from ocrd.cli import process_cli
from ocrd_utils import pushd_popd, disableLogging

from tests.base import CapturingTestCase as TestCase, main, assets, copy_of_directory

class TestLogCli(TestCase):

    def test_cli_process_smoke(self):
        disableLogging()
        with copy_of_directory(assets.path_to('kant_aufklaerung_1784/data')) as wsdir:
            with pushd_popd(wsdir):
                with self.assertRaisesRegex(Exception, "Executable not found in PATH: ocrd-foo"):
                    self.invoke_cli(process_cli, ['foo'])

if __name__ == '__main__':
    main(__file__)

from ocrd.cli import process_cli
from ocrd_utils import pushd_popd, disableLogging

from tests.base import CapturingTestCase as TestCase, main, assets, copy_of_directory

class TestLogCli(TestCase):

    def test_cli_process_smoke(self):
        disableLogging()
        with copy_of_directory(assets.path_to('kant_aufklaerung_1784/data')) as wsdir:
            with pushd_popd(wsdir):
                with self.assertRaisesRegex(Exception, "Executable not found in PATH: ocrd-foo"):
                    self.invoke_cli(process_cli, ['foo'])

if __name__ == '__main__':
    main(__file__)