From 78cd0b489a40367086b889ce50cd1e79aa7d027e Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Mon, 7 Nov 2022 15:23:20 +0000 Subject: [PATCH] add poetry scripts for test suites --- pyproject.toml | 2 ++ scripts.py | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 scripts.py 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)])