
from subprocess import check_call

from pytest import raises

from csft import __main__ as main


def test_call():
    check_call(['python', '-m', 'csft', '.'])


def test_main():
    main.main(argv=['.'])

    with raises(SystemExit):
        main.main(argv=[])


from subprocess import check_call

from pytest import raises

from csft import __main__ as main


def test_call():
    check_call(['python', '-m', 'csft', '.'])


def test_main():
    main.main(argv=['.'])

    with raises(SystemExit):
        main.main(argv=[])

    with raises(TypeError):
        main.main(argv=['path/is/not/a/directory'])

Test when path not is a directory.
Test when path not is a directory.

  
  from subprocess import check_call
  
  from pytest import raises
  
  from csft import __main__ as main
  
  
  def test_call():
      check_call(['python', '-m', 'csft', '.'])
  
  
  def test_main():
      main.main(argv=['.'])
  
      with raises(SystemExit):
          main.main(argv=[])
  
+     with raises(TypeError):
+         main.main(argv=['path/is/not/a/directory'])
+ 
Test when path not is a directory.
## Code Before:

from subprocess import check_call

from pytest import raises

from csft import __main__ as main


def test_call():
    check_call(['python', '-m', 'csft', '.'])


def test_main():
    main.main(argv=['.'])

    with raises(SystemExit):
        main.main(argv=[])

## Instruction:
Test when path not is a directory.
## Code After:

from subprocess import check_call

from pytest import raises

from csft import __main__ as main


def test_call():
    check_call(['python', '-m', 'csft', '.'])


def test_main():
    main.main(argv=['.'])

    with raises(SystemExit):
        main.main(argv=[])

    with raises(TypeError):
        main.main(argv=['path/is/not/a/directory'])
