-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import numpy as np | ||
#import numpy as np | ||
|
||
from napari_polcam import StokesQWidget | ||
#from napari_polcam import StokesQWidget | ||
|
||
|
||
# make_napari_viewer is a pytest fixture that returns a napari viewer object | ||
# capsys is a pytest fixture that captures stdout and stderr output streams | ||
def test_example_q_widget(make_napari_viewer, capsys): | ||
# make viewer and add an image layer using our fixture | ||
viewer = make_napari_viewer() | ||
viewer.add_image(np.random.random((100, 100))) | ||
def test_sum(): | ||
assert sum([1, 2, 3]) == 6, "Should be 6" | ||
|
||
# create our widget, passing in the viewer | ||
try: | ||
my_widget = StokesQWidget(viewer) | ||
return True | ||
except: | ||
return False | ||
def test_sum_tuple(): | ||
assert sum((1, 2, 2)) == 6, "Should be 6" | ||
|
||
## make_napari_viewer is a pytest fixture that returns a napari viewer object | ||
## capsys is a pytest fixture that captures stdout and stderr output streams | ||
#def test_example_q_widget(make_napari_viewer, ): | ||
# # make viewer and add an image layer using our fixture | ||
# viewer = make_napari_viewer() | ||
# viewer.add_image(np.random.random((100, 100))) | ||
# | ||
# # create our widget, passing in the viewer | ||
# try: | ||
# my_widget = StokesQWidget(viewer) | ||
# return True | ||
# except: | ||
# return False |