Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SVLT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ALMF
SVLT
Commits
3b182c3b
Commit
3b182c3b
authored
8 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Started a startup-script for tests to find test data
parent
17948c61
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
conda-recipe/meta.yaml
+2
-0
2 additions, 0 deletions
conda-recipe/meta.yaml
tests/_conf.py
+4
-2
4 additions, 2 deletions
tests/_conf.py
tests/run_tests.py
+14
-0
14 additions, 0 deletions
tests/run_tests.py
with
20 additions
and
2 deletions
conda-recipe/meta.yaml
+
2
−
0
View file @
3b182c3b
...
...
@@ -37,6 +37,8 @@ test:
imports
:
-
model_server
commands
:
# - echo {{ PREFIX }}
# - set PYTHON_UNITTEST_DATA_ROOT = "{{ PREFIX }}"
-
python -m unittest discover
requires
:
-
pip
...
...
This diff is collapsed.
Click to expand it.
tests/_conf.py
+
4
−
2
View file @
3b182c3b
...
...
@@ -2,9 +2,11 @@ import os
from
pathlib
import
Path
root
=
os
.
environ
.
get
(
'
PYTHON_UNITTEST_
OUTPU
T
'
,
Path
.
home
()
/
'
model_server
'
/
'
testing
'
'
PYTHON_UNITTEST_
DATA_ROO
T
'
,
#
Path.home() / 'model_server' / 'testing'
)
if
root
==
None
:
raise
Exception
(
'
data directory not specified
'
)
filename
=
'
D3-selection-01.czi
'
czifile
=
{
...
...
This diff is collapsed.
Click to expand it.
tests/run_tests.py
0 → 100644
+
14
−
0
View file @
3b182c3b
import
os
from
pathlib
import
Path
import
sys
import
unittest
pa
=
Path
(
__file__
).
parent
runner
=
unittest
.
TextTestRunner
()
if
__name__
==
'
__main__
'
:
# takes path to test data as first argument
data_dir_arg
=
sys
.
argv
[
1
]
data_dir
=
(
Path
(
os
.
getcwd
())
/
sys
.
argv
[
1
]).
resolve
()
assert
data_dir
.
exists
(),
f
'
Could not find test data
'
runner
.
run
(
unittest
.
TestLoader
().
discover
(
data_dir
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment