V3.0 #137
GitHub Actions / Unit Test Results
failed
Aug 25, 2023 in 0s
Annotations
Check warning on line 0 in tests.Status.test_Status
github-actions / Unit Test Results
test_bpstatus (tests.Status.test_Status) failed
junit/test-results.xml
Raw output
def test_bpstatus():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# Run vspace
if not (path / "BP_Status").exists():
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
if not (path / ".BP_Status").exists():
subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
# Run bigplanet
if not (path / ".BP_Status_BPL").exists():
subprocess.check_output(["bigplanet", "bpl.in", "-a"], cwd=path)
subprocess.check_output(["bpstatus", "vspace.in"], cwd=path)
file = path / "BP_Status.bpa"
# checks if the bpl files exist
> assert os.path.isfile(file) == True
E AssertionError: assert False == True
E + where False = <function isfile at 0x7f203d650e60>(PosixPath('/home/runner/work/bigplanet/bigplanet/tests/Status/BP_Status.bpa'))
E + where <function isfile at 0x7f203d650e60> = <module 'posixpath' from '/usr/share/miniconda/envs/vplanet/lib/python3.7/posixpath.py'>.isfile
E + where <module 'posixpath' from '/usr/share/miniconda/envs/vplanet/lib/python3.7/posixpath.py'> = os.path
tests/Status/test_Status.py:37: AssertionError
Loading