diff --git a/pyproject.toml b/pyproject.toml index dc094c8..472c17f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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' diff --git a/scripts.py b/scripts.py new file mode 100644 index 0000000..386f060 --- /dev/null +++ b/scripts.py @@ -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)])