You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add tests to check SPARQLStore against public endpoints. By default it is disabled (slow, and public endpoints loves to go down whenever they can, so we don't want to have them run as part of the default CI/CD). We need to add the flag --public-endpoints to the pytest command to enable them. The list of tested endpoints is the same as the one used in SPARQLWrapper tests, with a new entry for a Qlever endpoint. Documentation about this have been added to the developers docs page
* Improve type annotations for the SPARQLStore, uses Literal, so that people using it will get proper autocomplete suggestion for the returnFormats and methods available. Add better docs on how to use SPARQLStore in its docstring
* Fix mypy type checking errors: Unused "type: ignore" comment and Unsupported operand types for + ("str" and "int")
* fix doctests
* improve mkdocs page linking
* add additions to developers.rst to developers.md
---------
Co-authored-by: Vincent Emonet <[email protected]>
Copy file name to clipboardExpand all lines: docs/developers.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,18 @@ poetry install --all-extras
128
128
poetry run pytest
129
129
```
130
130
131
+
By default, tests of the `SPARQLStore` against remote public endpoints are skipped, to enable them add the flag:
132
+
133
+
```bash
134
+
poetry run pytest --public-endpoints
135
+
```
136
+
137
+
Or exclusively run the SPARQLStore tests:
138
+
139
+
```bash
140
+
poetry run pytest test/test_store/test_store_sparqlstore_public.py --public-endpoints
141
+
```
142
+
131
143
### Writing tests
132
144
133
145
New tests should be written for [pytest](https://docs.pytest.org/en/latest/) instead of for python's built-in `unittest` module as pytest provides advanced features such as parameterization and more flexibility in writing expected failure tests than `unittest`.
0 commit comments