Skip to content
Snippets Groups Projects
Commit 74d39c6c authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Allow optional test output path via environmental variable

parent 96974b07
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,10 @@ package:
version: {{ version }}
source:
path: ./dist/{{ name }}-{{ version }}.tar.gz
- path: ./dist/{{ name }}-{{ version }}.tar.gz
- path: ../fixtures_{{ version }}.tar.gz
folder: test_data
build:
noarch: python
......@@ -44,9 +47,11 @@ test:
imports:
- model_server
commands:
- pip check
- python -m unittest discover
requires:
- pip
source_files:
- test_data
about:
summary: Service for analyzing microscope images
......
import os
from pathlib import Path
root = Path.home() / 'model_server' / 'testing'
root = os.environ.get(
'PYTHON_UNITTEST_OUTPUT',
Path.home() / 'model_server' / 'testing'
)
filename = 'D3-selection-01.czi'
czifile = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment