-
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
Showing
4 changed files
with
24 additions
and
9 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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
"""Test CLI.""" | ||
import unittest | ||
|
||
from {{package_name}}.cli import main | ||
|
||
|
||
class TestCLI(unittest.TestCase): | ||
"""Test CLI.""" | ||
|
||
def test_cli(self): | ||
"""Test CLI.""" | ||
args = str(5) | ||
self.assertEqual(main(args=args), 6) |
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
"""Test Main.""" | ||
import unittest | ||
|
||
from {{package_name}}.main import add_one | ||
|
||
|
||
class TestMain(unittest.TestCase): | ||
"""Test Main.""" | ||
|
||
def test_add_one(self): | ||
"""Test Main.""" | ||
self.assertEqual(add_one(5), 6) |