#NEWLINE# def test_raise_when_no_project_given_outside_a_worktree( tmpdir , monkeypatch ) : #NEWLINE# #INDENT# monkeypatch . chdir ( tmpdir ) #NEWLINE# with pytest . raises ( qisys . error . Error ) as e : #NEWLINE# #INDENT# qisys . script . run_action ( 'qilinguist.actions.release' ) #NEWLINE# #UNINDENT# assert ( 'outside a worktree' in e . value . message )