def test_get_app_name_returns_value_from_manifest(mock_manifest): assert qpylib.get_app_name() == 'Live Manifest'
def test_get_app_name_raises_error_when_field_missing_from_manifest( mock_manifest): with pytest.raises(KeyError, match='name is a required manifest field'): qpylib.get_app_name()
def test_get_app_name_returns_value_from_manifest(mock_root_path, mock_get_manifest_location): assert qpylib.get_app_name() == 'Live Manifest'