Aether/tests/test_units.py

19 lines
556 B
Python
Raw Normal View History

2020-02-08 13:34:58 -06:00
import pytest
import os
import subprocess
# TODO Still need to devise a testing strategy (https://foundation.aninix.net/AniNIX/Aether/issues/1)
def test_aether():
print(os.getcwd())
fh = os.popen("./aether.bash -h", mode='r', buffering=-1)
2020-02-08 13:34:58 -06:00
output = fh.read()
retcode = fh.close()
assert retcode == None and 'Usage' in output
def test_aether_gen():
print(os.getcwd())
fh = os.popen("./aether-gen.bash -h", mode='r', buffering=-1)
output = fh.read()
retcode = fh.close()
assert retcode == None and 'Usage' in output