-
Notifications
You must be signed in to change notification settings - Fork 1
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 #88 from MIERUNE/feat/test
Feat/test
- Loading branch information
Showing
10 changed files
with
558 additions
and
21 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,5 @@ | ||
[virtualenvs] | ||
in-project = true | ||
|
||
[virtualenvs.options] | ||
system-site-packages = true |
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,30 @@ | ||
[tool.poetry] | ||
name = "quickdem4jp" | ||
version = "1.1.2" | ||
description = "Convert XML DEM files provided by Geospatial Information Authority of Japan(GSI) to GeoTiff format and/or Terrain RGB format DEM." | ||
authors = ["MIERUNE Inc. <info@mierune.co.jp>"] | ||
license = "GPL-2.0 license" | ||
readme = "README.md" | ||
packages = [ | ||
#{ include = "qgis", from = "C:\\Program Files\\QGIS 3.28.2\\apps\\qgis\\python" }, | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
black = "^24.3.0" | ||
flake8 = "^6.0.0" | ||
isort = "^5.12.0" | ||
pytest = "^7.2.1" | ||
flake8-bugbear = "^23.3.12" | ||
pytest-cov = "^4.0.0" | ||
pytest-qgis = "^1.3.2" | ||
|
||
|
||
[tool.poetry.group.pyqt5.dependencies] | ||
pyqt5 = "^5.15.9" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
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
Empty file.
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,17 @@ | ||
from typing import Iterable | ||
|
||
import pytest | ||
|
||
from qgis.gui import QgisInterface | ||
|
||
from ..__init__ import classFactory | ||
|
||
|
||
@pytest.fixture() | ||
def plugin(qgis_iface: QgisInterface) -> Iterable[None]: | ||
_plugin = classFactory(qgis_iface) | ||
_plugin.initGui() | ||
|
||
yield _plugin | ||
|
||
# _plugin.unload() QgisInterface.removePluginMenu()がpytest-qgisで未実装 |
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,7 @@ | ||
from ..quick_dem_for_jp import QuickDEMforJP | ||
from ..contents import Contents | ||
|
||
|
||
def test_show_dialog(plugin: QuickDEMforJP): | ||
plugin.dialog_show() | ||
assert isinstance(plugin.contents, Contents) |