Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
6 changed files
with
10 additions
and
90 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
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 |
---|---|---|
@@ -1,17 +1,13 @@ | ||
import regex | ||
|
||
from dsp_tools.commands.xmlupload.list_client import ListClientLive | ||
from dsp_tools.commands.xmlupload.project_client import ProjectClientLive | ||
from dsp_tools.utils.connection_live import ConnectionLive | ||
|
||
|
||
def test_list_client_live() -> None: | ||
con = ConnectionLive("http://localhost:3333") | ||
con.login("root@example.com", "test") | ||
project_client = ProjectClientLive(con, "0001") | ||
project_iri = project_client.get_project_iri() | ||
assert project_iri == "http://rdfh.ch/projects/0001" | ||
list_client = ListClientLive(con, project_iri) | ||
list_client = ListClientLive(con, "http://rdfh.ch/projects/0001") | ||
list_node_id_to_iri_lookup = list_client.get_list_node_id_to_iri_lookup() | ||
assert len(list_node_id_to_iri_lookup) >= 28 | ||
assert all(regex.search(r"^http://rdfh\.ch/lists/0001/.+$", x) for x in list_node_id_to_iri_lookup.values()) |
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