add ex_obs to scripts

This commit is contained in:
onyx-and-iris 2022-11-07 20:06:56 +00:00
parent 2732e56a86
commit 981f4b57f8
2 changed files with 8 additions and 3 deletions

View File

@ -23,6 +23,6 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts] [tool.poetry.scripts]
obs = "examples.xair_obs.__main__:main" obs = "scripts:ex_obs"
xair = 'scripts:test_xair' xair = "scripts:test_xair"
x32 = 'scripts:test_x32' x32 = "scripts:test_x32"

View File

@ -2,6 +2,11 @@ import subprocess
from pathlib import Path from pathlib import Path
def ex_obs():
path = Path.cwd() / "examples" / "xair_obs" / "."
subprocess.run(["py", str(path)])
def test_xair(): def test_xair():
path = Path.cwd() / "tests" / "xair" path = Path.cwd() / "tests" / "xair"
subprocess.run(["pytest", "-v", str(path)]) subprocess.run(["pytest", "-v", str(path)])