diff --git a/setup.cfg b/setup.cfg index b5b1b54..2cfb5b3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,7 +17,7 @@ classifiers = [options] py_modules = teyit install_requires = - refactor==0.4.0 + refactor==0.4.1 python_requires = >=3.9 [options.entry_points] diff --git a/tests/cosmetic/literals/input.py b/tests/cosmetic/literals/input.py index 2d24a7f..5830e43 100644 --- a/tests/cosmetic/literals/input.py +++ b/tests/cosmetic/literals/input.py @@ -15,3 +15,17 @@ def test_random(self): 2 + 2, False ) + + def test_indented_long_string(self): + self.assertTrue( + "Rejected:\n" + "Launchpad failed to process the upload path '~name16/ubuntu':\n\n" + "unicode PPA name: áří is disabled.\n\n" + "It is likely that you have a configuration problem with " + "dput/dupload.\n" + "Please check the documentation at " + "https://help.launchpad.net/Packaging/PPA/Uploading and update " + "your configuration.\n\n" + "Further error processing not possible because of a critical " + "previous error." in body + ) diff --git a/tests/cosmetic/literals/output.py b/tests/cosmetic/literals/output.py index 76e26f3..1297a7b 100644 --- a/tests/cosmetic/literals/output.py +++ b/tests/cosmetic/literals/output.py @@ -13,3 +13,18 @@ def test_random(self): self.assertFalse( 2 + 2 ) + + def test_indented_long_string(self): + self.assertIn( + "Rejected:\n" + "Launchpad failed to process the upload path '~name16/ubuntu':\n\n" + "unicode PPA name: áří is disabled.\n\n" + "It is likely that you have a configuration problem with " + "dput/dupload.\n" + "Please check the documentation at " + "https://help.launchpad.net/Packaging/PPA/Uploading and update " + "your configuration.\n\n" + "Further error processing not possible because of a critical " + "previous error.", + body + )