We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9455d8a commit 275d004Copy full SHA for 275d004
tests/program.py
@@ -376,6 +376,22 @@ def explicit_namespace_works_correctly(self):
376
ns = Collection.from_module(load("integration"))
377
expect("print-foo", out="foo\n", program=Program(namespace=ns))
378
379
+ def correctly_suggest_most_simillart_command(self):
380
+ ns = Collection.from_module(load("integration"))
381
+ expected = """
382
+No idea what '{0}' is!
383
+'{0}' is not an invoke command. See 'invoke --list'.
384
+
385
+The most similar command(s):
386
+ print-foo
387
388
+""".lstrip()
389
+ expect(
390
+ "print-fo",
391
+ err=expected.format("print-fo"),
392
+ program=Program(namespace=ns),
393
+ )
394
395
def allows_explicit_task_module_specification(self):
396
expect("-c integration print-foo", out="foo\n")
397
0 commit comments