mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2024-11-15 17:40:57 +00:00
add ex_obs to scripts
This commit is contained in:
parent
2732e56a86
commit
981f4b57f8
@ -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"
|
||||||
|
@ -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)])
|
||||||
|
Loading…
Reference in New Issue
Block a user