-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a21b595
commit 2559335
Showing
3 changed files
with
140 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from click.testing import CliRunner | ||
import pathlib | ||
|
||
from srctag.cli import diff, graph | ||
|
||
|
||
def test_diff(): | ||
runner = CliRunner() | ||
path = pathlib.Path(__file__).parent.parent.as_posix() | ||
runner.invoke(diff, ["--repo-root", path, "--batch", 2], catch_exceptions=False) | ||
|
||
|
||
def test_graph(): | ||
runner = CliRunner() | ||
path = pathlib.Path(__file__).parent.parent.as_posix() | ||
runner.invoke(graph, ["--repo-root", path], catch_exceptions=False) |