Skip to content
Snippets Groups Projects
Commit 751e5d41 authored by dilawar's avatar dilawar :ant:
Browse files

chore: fix tests

stream can return `None`
parent 10707616
No related branches found
No related tags found
1 merge request!2version 0.2.0
...@@ -10,9 +10,11 @@ def test_sanity(): ...@@ -10,9 +10,11 @@ def test_sanity():
def test_run_simple(): def test_run_simple():
for line in bitia.__main__.run_pipeline("ls -ltr /"): for line in bitia.__main__.run_pipeline("ls -ltr /"):
print(111, line.decode().rstrip()) if line:
print(111, line.decode().rstrip())
for line in bitia.__main__.run_pipeline("ls -ltr /", rerun=True): for line in bitia.__main__.run_pipeline("ls -ltr /", rerun=True):
print(222, line.decode().rstrip()) if line:
print(222, line.decode().rstrip())
if __name__ == "__main__": if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment