# HG changeset patch # User Raphaël Gomès <rgomes@octobus.net> # Date 1554471083 -7200 # Fri Apr 05 15:31:23 2019 +0200 # Node ID 0d388137ae84236e4d7d77f64cb056f8c98b9631 # Parent eb31e66d4789642049eef9d423ab5dcb8ccf0507 Add pytest as a dependency with minimal configuration Pytest is the best python test runner in 2019, so it makes sense for us to use it for testing our own scripts. Since its test discovery relies on python modules (even in Python 3), this change adds the required __init__.py files in the folder structure. A minimal pytest.ini config file was added with usual parameters. diff --git a/pytest.ini b/pytest.ini new file mode 100644 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = tests -s -vvv \ No newline at end of file diff --git a/requirements.txt b/requirements.txt --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ git+https://github.com/octobus-net/asv.git@octobuspatches#egg=asv pyyaml perf +pytest diff --git a/script/__init__.py b/script/__init__.py new file mode 100644 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644