-
Notifications
You must be signed in to change notification settings - Fork 4
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 #38 from PermafrostDiscoveryGateway/feature-37-poe…
…try-build python testing using pytest and poetry build for dependencies
- Loading branch information
Showing
6 changed files
with
70 additions
and
38 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 |
---|---|---|
|
@@ -129,4 +129,7 @@ dmypy.json | |
.pyre/ | ||
|
||
# macOS | ||
.DS_Store | ||
.DS_Store | ||
|
||
# Poetry | ||
poetry.lock |
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 @@ | ||
{ | ||
"python.testing.pytestArgs": [ | ||
"tests" | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": 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
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,40 @@ | ||
[tool.poetry] | ||
name = "pdgstaging" | ||
version = "0.9.1" | ||
description = "Geospatial data tiling workflow" | ||
authors = [ | ||
"Robyn Thiessen-Bock <[email protected]>", | ||
"Juliet Cohen <[email protected]>", | ||
"Lauren Walker <[email protected]>", | ||
"Matthew B. Jones <[email protected]>", | ||
] | ||
license = 'Apache Software License 2.0' | ||
readme = "README.md" | ||
repository = 'https://github.com/PermafrostDiscoveryGateway/viz-staging' | ||
classifiers=[ | ||
'Development Status :: 2 - Pre-Alpha', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.9', | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.9" | ||
numpy = ">=1.2" | ||
pandas = ">=1.4, < 2.0" | ||
shapely = ">= 2, < 3.0" | ||
geopandas = ">= 0.12.2, < 1.0" | ||
morecantile = ">= 3.1, < 4.0" | ||
Rtree = ">= 0.9, < 1.0" | ||
filelock = ">= 3.6, < 4.0" | ||
coloraide = ">= 0.10, < 1" | ||
colormaps = "== 0.4.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = ">=7" | ||
|
||
[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from pandas import DataFrame | ||
|
||
def test_init(): | ||
"""Initialize tests and show they are working. | ||
""" | ||
assert 1 == 1 | ||
|
||
def test_load_data(): | ||
"""Load example testing data for staging tests. | ||
""" | ||
df = DataFrame( dict( x=[1,2,3], y=[4,5,6] ) ) | ||
assert df is not None |