From 2908a63f3e67458d3c1a40f1d68cc39072963320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Madon?= <mael.madon@irit.fr> Date: Fri, 14 Apr 2023 13:18:14 +0200 Subject: [PATCH] the test suite now uses the installed executable rather than a relative path to the script --- README.md | 6 +++--- test/conftest.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 474c565..0fd1d0e 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,11 @@ Installation with `pip` without cloning: pip install git+https://gitlab.irit.fr/sepia-pub/mael/swf2userSessions ``` -Clone and install with `flit`: +Clone and install: ```terminal git clone https://gitlab.irit.fr/sepia-pub/mael/swf2userSessions cd swf2userSessions -flit install +pip install . ``` You can then run the app from CLI by simply calling `swf2userSessions`. @@ -55,4 +55,4 @@ For example use of the script, you can have a look at these two notebooks: ## Tests -Some integration tests have been written for this script, and are stored in the `test/` folder. To run them on your machine, just type `pytest` at the root of the project. \ No newline at end of file +Some integration tests have been written for this script, and are stored in the `test/` folder. To run them on your machine, just type `pytest` at the root of the project after having installed the package. \ No newline at end of file diff --git a/test/conftest.py b/test/conftest.py index b074361..15924f6 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -30,7 +30,7 @@ def run_script(delim, threshold, out_dir = os.path.abspath(f'test-out/{test_name}') create_dir_rec_if_needed(out_dir) - args = ['python3', 'swf2userSessions/swf2sessions.py', f'--{delim}', str(threshold), + args = ['swf2userSessions', f'--{delim}', str(threshold), '-q', input_swf, out_dir] if graph: args.append("--graph") -- GitLab