mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2024-11-15 17:40:57 +00:00
add poetry scripts for test suites
This commit is contained in:
parent
6944ba5128
commit
78cd0b489a
@ -24,3 +24,5 @@ build-backend = "poetry.core.masonry.api"
|
|||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
obs = "examples.xair-obs.__main__:main"
|
obs = "examples.xair-obs.__main__:main"
|
||||||
|
xair = 'scripts:test_xair'
|
||||||
|
x32 = 'scripts:test_x32'
|
||||||
|
12
scripts.py
Normal file
12
scripts.py
Normal 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)])
|
Loading…
Reference in New Issue
Block a user