generated from canonical/starbase
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly represent yaml dumped multiline strings
Add a representer as we do for other craft applications to correctly dump multi line strings.
- Loading branch information
1 parent
0d5ef51
commit 51346d9
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
base: core24 | ||
contact: [email protected] | ||
description: A fully-defined craft-application project. (description) | ||
description: | | ||
A fully-defined craft-application project. | ||
With more than one line. | ||
issues: https://github.com/canonical/craft-application/issues | ||
license: LGPLv3 | ||
name: full-project | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
"""Tests for BaseProject""" | ||
import pathlib | ||
from textwrap import dedent | ||
from typing import Optional | ||
|
||
import pytest | ||
|
@@ -44,14 +45,19 @@ | |
issues="https://github.com/canonical/craft-application/issues", | ||
source_code="https://github.com/canonical/craft-application", # pyright: ignore[reportGeneralTypeIssues] | ||
summary="A fully-defined craft-application project.", # pyright: ignore[reportGeneralTypeIssues] | ||
description="A fully-defined craft-application project. (description)", | ||
description="A fully-defined craft-application project.\nWith more than one line.\n", | ||
license="LGPLv3", | ||
parts=PARTS_DICT, | ||
) | ||
FULL_PROJECT_DICT = { | ||
"base": "core24", | ||
"contact": "[email protected]", | ||
"description": "A fully-defined craft-application project. (description)", | ||
"description": dedent( | ||
"""\ | ||
A fully-defined craft-application project. | ||
With more than one line. | ||
""" | ||
), | ||
"issues": "https://github.com/canonical/craft-application/issues", | ||
"license": "LGPLv3", | ||
"name": "full-project", | ||
|