| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Eliminate some occurrences of the following flake8 errors in tests:
* E265 block comment should start with '# '
* E266 too many leading '#' for block comment
* E402 module level import not at top of file
* E712 comparison to False should be 'if cond is False:' or 'if not cond:'
* E712 comparison to True should be 'if cond is True:' or 'if cond:'
* E722 do not use bare 'except'
* F401 ... imported but unused
* F403 ... used; unable to detect undefined names
* F405 ... may be undefined, or defined from star imports: ...
* F541 f-string is missing placeholders
* F841 local variable 'result' is assigned to but never used
* N806 variable 'TEST_DIR' in function should be lowercase
This is pursuant to eliminating
[flakeheaven](https://github.com/flakeheaven/flakeheaven), as it no longer
supports the latest version of flake8
[[ref](https://github.com/flakeheaven/flakeheaven/issues/132)].
|
| |
|
|
|
|
|
|
| |
Disable
[`implicit_reexport`](https://mypy.readthedocs.io/en/stable/config_file.html#confval-implicit_reexport)
and eliminate all errors reported by mypy after this.
This helps ensure that import statements import from the right module and that
the `__all__` variable is correct.
|
| |
|
|
| |
This changes the test the code to avoid deprecation warnings that
occur. Mostly related to changes in python threading and pytest.
|
| | |
|
| |
|
|
|
|
|
| |
(#2180)
The SPARQLConnector instance created by a SPARQLStore instance providing endpoint url + query string params using POST method did not append the query string to endpoint url.
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| |
|
|
|
|
| |
Copy kwargs dict to prevent POST headers to be used in GET request and vice versa.
Co-authored-by: Mark van der Pas <mark.van.der.pas@semaku.com>
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
|
| |
|
|
|
| |
Add encoding "charset=UTF-8" to Content-Type header in `SPARQLConnector.update()` request.
Fixes #2095
|
| |
|
|
|
|
| |
Confirm various content type values are handled correctly with CONSTRUCT
queries and SPARQLStore.
This aims to confirm that #1195 is fixed.
|
| |
|
| |
Fairly straight forward conversions with minimal changes.
|
| |
|
|
|
|
|
|
|
|
| |
This patch removes unused imports in test code. This is mainly to remove
the potential snag for flake8/flakeheaven.
The actual cleanup was done with `pycln --all test`.
Also:
- Remove superflous `pass` statements.
|
| |
|
| |
Updated two instances of lingering deprecated `tempfile.mktemp` usage to use current safe tempfile idiom.
|
| |
|
|
|
| |
This changes the HTTP server mock to a more versatile implementation
with support for more HTTP methods.
|
| |
|
|
|
|
|
| |
This patch moves all test utility modules into `test/utils/` and the
tests for these modules into `test/utils/test/`.
This is to make test utilities more organized and in preparation for
adding more test utilities related to test suites.
|
| |
|
|
|
|
|
|
|
|
|
| |
- Added store specific tests for namespace binding and rebinding.
- Copied @gjhiggins fix for `rdflib.plugins.stores.memory.Memory.bind` to
`rdflib.plugins.stores.memory.SimpleMemory.bind`.
- Changed `bind` on `Memory`, `SimpleMemory`, `BerkleyDB` stores to
explicitly check for `is not None`/`is None` instead of
falsey/truthy.
- Added `pytest.util._coalesce` to do null coalescing, for more info see
deferred PEP-505 https://peps.python.org/pep-0505/.
|
| |
|
|
| |
for more information, see https://pre-commit.ci
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
code out of fixtures into separate functions
|
| |
|
|
| |
Preparatory work for dataset-rework, eases review
|
| | |
|
| | |
|
| | |
|
| |
|