Commit 319ae10c authored by t's avatar t
Browse files

Add .sow() to widgets

parent 967b6183
Pipeline #1394 failed
......@@ -4,59 +4,10 @@ variables:
PYPI_PASS: SECURE
stages:
- build
- installer
- test
- deploy
build docs:
stage: build
script:
- tox -e docs
tags:
- shared-linux
artifacts:
paths:
- doc/
expire_in: 1 week
build linux installer:
stage: build
script:
- tox -e installer
tags:
- shared-linux
artifacts:
paths:
- dist/
expire_in: 1 week
build mac installer:
stage: build
script:
- tox -e installer
tags:
- shared-mac
artifacts:
paths:
- dist/
expire_in: 1 week
build windows installer:
stage: build
script:
- tox -e installer
tags:
- shared-win, gui
artifacts:
paths:
- dist/
expire_in: 1 week
test Linux:
stage: test
variables:
......@@ -85,23 +36,6 @@ test Windows:
tags:
- shared-win
deploy docs to staging:
stage: deploy
script:
# Note: the group/username directory must already exist on the server before calling this command
- rsync -avz -e'ssh -v' --numeric-ids --delete doc/build/html/* staging_docs_rsync:WEISS/SoftwareRepositories/SNAPPY/scikit-surgeryARDavinci 2>&1
tags:
- docs-staging
environment:
name: staging
url: http://weisslab-lin.cs.ucl.ac.uk/staging/WEISS/SoftwareRepositories/SNAPPY/scikit-surgeryARDavinci
only:
- master
dependencies:
- build docs
deploy docs to production:
stage: deploy
script:
......
......@@ -28,10 +28,9 @@ def mono_viewer(video_file_source):
vtk_model_path = 'inputs/Liver'
vtk_model_loader = VTKSurfaceModelDirectoryLoader(vtk_model_path)
mono_viewer.add_VTK_models(vtk_model_loader.models)
mono_viewer.start()
yield mono_viewer
"""
def test_opacity_slider_for_correct_opacity(mono_viewer):
mono_viewer.UI.opacity_slider.setSliderPosition(50)
for vtk_model in mono_viewer.UI.vtk_models:
......@@ -57,5 +56,4 @@ def test_model_visibilty_toggle(mono_viewer):
vtk_model.toggle_visibility()
assert vtk_model.actor.GetVisibility() == 0
vtk_model.toggle_visibility()
assert vtk_model.actor.GetVisibility() == 1
"""
\ No newline at end of file
assert vtk_model.actor.GetVisibility() == 1
\ No newline at end of file
......@@ -16,7 +16,7 @@ def video_file_source(setup_qt):
def mock_stereo_widget(video_file_source):
""" Provide video file for subsequent tests"""
mock_stereo = Viewers.MockStereoViewer(video_file_source)
mock_stereo.start()
return mock_stereo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment