-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marvin Hofer
committed
Sep 13, 2023
1 parent
50db7e4
commit 810b55f
Showing
4 changed files
with
129 additions
and
2 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
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
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,20 @@ | ||
"""Download Tests""" | ||
import pytest | ||
import databusclient.client as cl | ||
|
||
DEFAULT_ENDPOINT="https://databus.dbpedia.org/sparql" | ||
TEST_QUERY=""" | ||
PREFIX dcat: <http://www.w3.org/ns/dcat#> | ||
SELECT ?x WHERE { | ||
?sub dcat:downloadURL ?x . | ||
} LIMIT 10 | ||
""" | ||
TEST_COLLECTION="https://databus.dbpedia.org/dbpedia/collections/dbpedia-snapshot-2022-12" | ||
|
||
def test_with_query(): | ||
cl.download("target",DEFAULT_ENDPOINT,[TEST_QUERY] | ||
|
||
) | ||
|
||
def test_with_collection(): | ||
cl.download("target",DEFAULT_ENDPOINT,[TEST_COLLECTION]) |