Skip to content

Commit

Permalink
conan-io#6693 Use multiline description for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed Mar 24, 2020
1 parent 7f60061 commit 39028ca
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions conans/test/functional/command/info_test.py
Expand Up @@ -63,7 +63,9 @@ def _create(self, number, version, deps=None, deps_dev=None, export=True):
'version = "0.1"\n'
' url= "myurl"\n'
' license = "MIT", "GPL"\n'
' description = "foobar"')
' description = """Yo no creo en brujas,\n'
' pero que las hay,\n'
' las hay"""')

self.client.save(files)
if export:
Expand Down Expand Up @@ -334,7 +336,9 @@ def test_reuse(self):
conanfile.py (Hello2/0.1)
URL: myurl
Licenses: MIT, GPL
Description: foobar
Description: Yo no creo en brujas,
pero que las hay,
las hay
Requires:
Hello1/0.1@lasote/stable""")

Expand Down Expand Up @@ -396,7 +400,9 @@ def clean_output(output):
conanfile.py (Hello2/0.1)
URL: myurl
Licenses: MIT, GPL
Description: foobar""")
Description: Yo no creo en brujas,
pero que las hay,
las hay""")
self.assertIn(expected_output, clean_output(self.client.out))

def test_json_info_outputs(self):
Expand Down

0 comments on commit 39028ca

Please sign in to comment.