def test_no_files_specified(tmpdir, mocked_aws_cf_simple):
 with tmpdir.as_cwd():
  config_path = tmpdir.join('config.yaml')
  config_path.write(mocked_aws_cf_simple)
  assert (main(['create']) == 0)
  assert (main(['wait']) == 0)
  assert (main(['describe']) == 0)
  assert (main(['pytest']) == 0)
  assert (main(['delete']) == 0)

def test_no_files_specified ( tmpdir , mocked_aws_cf_simple ) : with tmpdir . as_cwd ( ) : config_path = tmpdir . join ( 'config.yaml' ) config_path . write ( mocked_aws_cf_simple ) assert ( main ( [ 'create' ] ) == 0 ) assert ( main ( [ 'wait' ] ) == 0 ) assert ( main ( [ 'describe' ] ) == 0 ) assert ( main ( [ 'pytest' ] ) == 0 ) assert ( main ( [ 'delete' ] ) == 0 )
ensure typical usage works without specifying config and info file paths .