Skip to content

Commit

Permalink
Tests: Update tests (pull from upstream).
Browse files Browse the repository at this point in the history
- Cherry picked from upstream:

    click-contrib/click-aliases.git 0352616 2019-08-06

      Add click 7 support

      Closes click-contrib#2
  • Loading branch information
hotoffthehamster committed Mar 26, 2020
1 parent 7dec573 commit a0d292e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import click
from click.testing import CliRunner

from click_alias import ClickAliasedGroup

import pytest


Expand Down Expand Up @@ -40,9 +42,9 @@ def test_foobar(runner):


TEST_INVALID = """Usage: cli [OPTIONS] COMMAND [ARGS]...
{}
Error: No such command "bar".
"""
""".format('Try "cli --help" for help.\n')


def test_invalid(runner):
Expand Down
6 changes: 4 additions & 2 deletions tests/test_foobar.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import click
from click.testing import CliRunner

from click_alias import ClickAliasedGroup

import pytest


Expand Down Expand Up @@ -41,9 +43,9 @@ def test_foobar(runner):


TEST_INVALID = """Usage: cli [OPTIONS] COMMAND [ARGS]...
{}
Error: No such command "baz".
"""
""".format('Try "cli --help" for help.\n')


def test_invalid(runner):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_naval.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import click
from click.testing import CliRunner

from click_alias import ClickAliasedGroup

import pytest


Expand Down

0 comments on commit a0d292e

Please sign in to comment.