-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.2.35: more terse output, hiding traceback from build.executables.run
- Loading branch information
1 parent
c212c3f
commit d8002d1
Showing
6 changed files
with
47 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
from uranium.exceptions import NonZeroExitCodeException | ||
|
||
|
||
def test_hello_world(capfd, executables): | ||
desired_output = "hello, world" | ||
executables.run(["echo", "{0}".format(desired_output)], | ||
subprocess_args={"stdin": None}) | ||
out, err = capfd.readouterr() | ||
assert out.strip() == "hello, world" | ||
|
||
|
||
def test_exception_contains_executable_name(capfd, executables): | ||
try: | ||
executables.run(["grep"]) | ||
except NonZeroExitCodeException as e: | ||
assert "grep" in str(e) | ||
else: | ||
assert False |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
STARTING_URANIUM = """ | ||
================ | ||
STARTING URANIUM | ||
================ | ||
=== START URANIUM === | ||
""".strip() | ||
|
||
ENDING_URANIUM = """ | ||
================ | ||
URANIUM FINISHED | ||
================ | ||
=== URANIUM FINISHED === | ||
""".strip() |