forked from pool/python-dictknife
- update to 0.14.0:
* use tomlkit instead of qtoml * use ruamel.yaml instead of pyyaml (for preserving comments) * add `dictknife diff -o pair` OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dictknife?expand=0&rev=9
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
Index: dictknife-0.13.0/dictknife/tests/cliutils/test_extraarguments.py
|
||||
Index: dictknife-0.14.0/dictknife/tests/cliutils/test_extraarguments.py
|
||||
===================================================================
|
||||
--- dictknife-0.13.0.orig/dictknife/tests/cliutils/test_extraarguments.py
|
||||
+++ dictknife-0.13.0/dictknife/tests/cliutils/test_extraarguments.py
|
||||
--- dictknife-0.14.0.orig/dictknife/tests/cliutils/test_extraarguments.py
|
||||
+++ dictknife-0.14.0/dictknife/tests/cliutils/test_extraarguments.py
|
||||
@@ -1,3 +1,4 @@
|
||||
+import sys
|
||||
import textwrap
|
||||
@@ -13,13 +13,13 @@ Index: dictknife-0.13.0/dictknife/tests/cliutils/test_extraarguments.py
|
||||
def test_help_message(self):
|
||||
+ ending = "al arguments"
|
||||
+ if sys.version_info >= (3, 10):
|
||||
+ ending ="s"
|
||||
+ ending = "s"
|
||||
target = self._makeOne()
|
||||
expected = textwrap.dedent(
|
||||
"""
|
||||
usage: cmd [-h]
|
||||
|
||||
- optional arguments:
|
||||
- options:
|
||||
+ option%s:
|
||||
-h, --help show this help message and exit
|
||||
|
||||
@@ -27,7 +27,7 @@ Index: dictknife-0.13.0/dictknife/tests/cliutils/test_extraarguments.py
|
||||
for --format=json:
|
||||
--sort-keys sort keys
|
||||
- """
|
||||
+ """ % (ending,)
|
||||
+ """ % (ending, )
|
||||
).strip()
|
||||
|
||||
actual = target.parser.format_help().strip()
|
||||
|
||||
Reference in New Issue
Block a user