-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from dalthviz/issue_59_p2
Initial napari specific classes for package installer related logic
- Loading branch information
Showing
8 changed files
with
797 additions
and
656 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
23 changes: 23 additions & 0 deletions
23
napari_plugin_manager/_tests/test_base_installer_process.py
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,23 @@ | ||
import pytest | ||
|
||
from napari_plugin_manager.base_qt_package_installer import ( | ||
AbstractInstallerTool, | ||
) | ||
|
||
|
||
def test_not_implemented_methods(): | ||
tool = AbstractInstallerTool('install', ['requests']) | ||
with pytest.raises(NotImplementedError): | ||
tool.executable() | ||
|
||
with pytest.raises(NotImplementedError): | ||
tool.arguments() | ||
|
||
with pytest.raises(NotImplementedError): | ||
tool.environment() | ||
|
||
with pytest.raises(NotImplementedError): | ||
tool.constraints() | ||
|
||
with pytest.raises(NotImplementedError): | ||
tool.available() |
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
Oops, something went wrong.