add poetry scripts for test suites

This commit is contained in:
onyx-and-iris 2022-11-07 15:23:20 +00:00
parent 6944ba5128
commit 78cd0b489a
2 changed files with 14 additions and 0 deletions

View File

@ -24,3 +24,5 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
obs = "examples.xair-obs.__main__:main"
xair = 'scripts:test_xair'
x32 = 'scripts:test_x32'

12
scripts.py Normal file
View File

@ -0,0 +1,12 @@
import subprocess
from pathlib import Path
def test_xair():
path = Path.cwd() / "tests" / "xair"
subprocess.run(["pytest", "-v", str(path)])
def test_x32():
path = Path.cwd() / "tests" / "x32"
subprocess.run(["pytest", "-v", str(path)])