Skip to content

Commit

Permalink
tests: cleanup and improvements to tests (#10)
Browse files Browse the repository at this point in the history
* tests: cleanup and improvements to tests
  • Loading branch information
mailletf authored Jan 16, 2025
1 parent fc70717 commit efcc5e6
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 464 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
- name: pytest
run: |
pipx ensurepath
poetry self add poetry-plugin-export
poetry export -f requirements.txt --with dev --output requirements.txt
set -e
python3 -m venv .venv
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target/
tests/__pycache__/
12 changes: 12 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import pytest
import shapely


@pytest.fixture
def polygon_whitehorse():
return shapely.from_wkt(open("tests/data/whitehorse_wkt.txt").read())


@pytest.fixture
def polygon_verdun():
return shapely.from_wkt(open("tests/data/verdun_wkt.txt").read())
Loading

0 comments on commit efcc5e6

Please sign in to comment.