-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Run tests on ubuntu - Updated tests - Added Log test and Log init update
- Loading branch information
Showing
8 changed files
with
79 additions
and
65 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,21 +1,21 @@ | ||
#name: napari hub Preview Page # we use this name to find your preview page artifact, so don't change it! | ||
## For more info on this action, see https://github.com/chanzuckerberg/napari-hub-preview-action/blob/main/action.yml | ||
# | ||
#on: | ||
# pull_request: | ||
# branches: | ||
# - 'test' # '**' for all | ||
# | ||
#jobs: | ||
# preview-page: | ||
# name: Preview Page Deploy | ||
# runs-on: ubuntu-latest | ||
# | ||
# steps: | ||
# - name: Checkout repo | ||
# uses: actions/checkout@v2 | ||
# | ||
# - name: napari hub Preview Page Builder | ||
# uses: chanzuckerberg/[email protected].5 | ||
# with: | ||
# hub-ref: main | ||
name: napari hub Preview Page # we use this name to find your preview page artifact, so don't change it! | ||
# For more info on this action, see https://github.com/chanzuckerberg/napari-hub-preview-action/blob/main/action.yml | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'test' # '**' for all | ||
|
||
jobs: | ||
preview-page: | ||
name: Preview Page Deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: napari hub Preview Page Builder | ||
uses: chanzuckerberg/[email protected].6 | ||
with: | ||
hub-ref: main |
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from napari_cellseg3d.interface import Log | ||
|
||
def test_log(qtbot): | ||
log = Log() | ||
log.print_and_log("test") | ||
|
||
assert log.toPlainText() == "\ntest" | ||
|
||
log.replace_last_line("test2") | ||
|
||
assert log.toPlainText() == "\ntest2" | ||
|
||
qtbot.add_widget(log) |
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
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
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
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
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