Skip to content

Commit 64b4be1

Browse files
committed
fix: add pytest
1 parent 5171e63 commit 64b4be1

4 files changed

Lines changed: 609 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Install Python dependencies and build package
4242
run: |
43-
uv sync --frozen --verbose || uv sync --verbose
43+
uv sync --extra test --frozen --verbose || uv sync --extra test --verbose
4444
4545
- name: Run tests with coverage
4646
run: |

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ maintainers = [
2424

2525
requires-python = ">= 3.8"
2626

27+
[project.optional-dependencies]
28+
test = [
29+
"pytest >= 8.0",
30+
"pytest-cov >= 5.0",
31+
]
32+
2733
[project.urls]
2834
Homepage = "https://mapnik.org"
2935
Documentation = "https://github.com/mapnik/python-mapnik/wiki"

src/mapnik_map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void export_map(py::module const& m)
295295
"<mapnik._mapnik.Featureset object at 0x23b0b0>\n"
296296
">>> featureset.features\n"
297297
">>> [<mapnik.Feature object at 0x3995630>]\n",
298-
py::arg("layer idx"), py::arg("x"), py::arg("y")
298+
py::arg("layer_idx"), py::arg("x"), py::arg("y")
299299
)
300300

301301
.def("remove_all", &Map::remove_all,

0 commit comments

Comments
 (0)