-
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.
feat: Fix Broken Documentation build (#22)
Fix errors at building the Documentaiton Add an -V flag to get the current tfutility version Improve the pyproject.toml Try to Build the Documentation also at development commits
- Loading branch information
Showing
13 changed files
with
100 additions
and
54 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
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
Empty file.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
# -*- coding: utf-8 -*- | ||
import re | ||
|
||
from tfutility.main import main | ||
|
||
VESION_REGEX = re.compile(r"^(\d+\.)?(\d+\.)?(\*|\d+)$") | ||
|
||
|
||
def test_empty(capsys, mocker): | ||
mocker.patch("sys.argv", ["tfutility"]) | ||
tfdo = mocker.patch("tfutility.main.TfUtility.do") | ||
main() | ||
captured = capsys.readouterr() | ||
assert captured.out == "" | ||
assert tfdo.call_count == 1 | ||
|
||
|
||
def test_version(capsys, mocker): | ||
mocker.patch("sys.argv", ["tfutility", "-V"]) | ||
sysexit = mocker.patch("sys.exit") | ||
main() | ||
captured = capsys.readouterr() | ||
assert VESION_REGEX.match(captured.out) is not None | ||
assert sysexit.call_count == 1 |