-
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.
- Loading branch information
1 parent
e061ce1
commit 3ad34b4
Showing
4 changed files
with
25 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
URANIUM_PY = """ | ||
from uranium import current_build | ||
@current_build.task | ||
def main(build): | ||
print("ok") | ||
""" | ||
from uranium.scripts import execute_script | ||
from .conftest import URANIUM_SOURCE_ROOT | ||
|
||
|
||
def test_current_build_in_ubuild(tmpdir): | ||
""" current_build shoud be valid in the ubuild.py """ | ||
tmpdir.join("ubuild.py").write(URANIUM_PY) | ||
|
||
status, out, err = execute_script( | ||
"uranium_standalone", "--uranium-dir", URANIUM_SOURCE_ROOT, | ||
cwd=tmpdir.strpath | ||
) | ||
assert "ok" in out.decode("utf-8") |
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