-
Notifications
You must be signed in to change notification settings - Fork 1
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
8 changed files
with
63 additions
and
8 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,3 @@ | ||
# See: https://blog.github.com/2017-07-06-introducing-code-owners/ | ||
# These owners will be the default owners for everything in the repo. | ||
* @coi-gov-pl/puppet-team |
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 |
---|---|---|
|
@@ -18,3 +18,4 @@ recursive-include integration_tests */Dockerfile | |
|
||
# Exclude environment files | ||
prune .circleci | ||
prune .github |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ root=$(dirname $(dirname $(dirname ${here}))) | |
|
||
set -x | ||
|
||
pip install -e ${root} | ||
LC_ALL=C pip install -e ${root} |
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,2 +1,4 @@ | ||
from puppeter.main import main | ||
main() | ||
|
||
if __name__ == '__main__': | ||
main() |
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,21 @@ | ||
import re | ||
|
||
import pytest | ||
|
||
from tests.helpers.commandline import captured_output | ||
|
||
|
||
def test_usage_printout(): | ||
from puppeter import __main__ | ||
|
||
with pytest.raises(SystemExit) as sysexit: | ||
with captured_output() as (out, err): | ||
__main__.main(['puppeter', '--help']) | ||
|
||
stdout = out.getvalue().strip() | ||
stderr = err.getvalue().strip() | ||
assert sysexit.value.code == 0 | ||
assert stdout == '' | ||
assert re.compile('Puppeter', re.MULTILINE).search(stderr) | ||
assert re.compile('--answers FILE, -a FILE', re.MULTILINE).search(stderr) | ||
assert re.compile('--execute, -e', re.MULTILINE).search(stderr) |