From 2966c9a60fc828afdf34263b759159a3ade31897 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Mon, 21 Feb 2022 15:17:19 -0800 Subject: [PATCH] Updated docs [skip ci] --- tests/README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/README.md b/tests/README.md index a13a5c0d..47c6bcf6 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,14 +1,18 @@ # Tests for osxphotos # ## Running Tests ## -Tests require pytest and pytest-mock: -`pip install pytest` -`pip install pytest-mock` +To set up a dev environment to work on osxphotos code or run tests follow these steps. This assumes you have python 3.7 or later installed. If you need to install python, you can do so with the XCode command lines tools (`xcode-select --install`) or from [python.org](https://www.python.org/downloads/macos/). + +- `git clone git@github.com:RhetTbull/osxphotos.git` +- `cd osxphotos` +- `python3 -m venv venv` +- `source venv/bin/activate` +- `python3 -m pip install -r dev_requirements.txt` +- `python3 -m pip install -e .` To run the tests, do the following from the main source folder: -`python -m pytest tests/` +`python3 -m pytest tests/` -Running the tests this way allows the library to be tested without installing it. ## Skipped Tests ## A few tests will look for certain environment variables to determine if they should run.