Skip to content
Snippets Groups Projects
Commit ba85c5da authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

resolved merge conflicts and removed pylinkahead.ini

parent 40946418
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ from pathlib import Path ...@@ -24,6 +24,7 @@ from pathlib import Path
from ruqad.crawler import trigger_crawler from ruqad.crawler import trigger_crawler
DATADIR = Path(__file__).parent / "data" / "crawler_data" DATADIR = Path(__file__).parent / "data" / "crawler_data"
BROKEN_DATADIR = Path(__file__).parent / "data" / "broken_crawler_data"
def test_crawl(capsys): def test_crawl(capsys):
...@@ -63,3 +64,14 @@ def test_crawl(capsys): ...@@ -63,3 +64,14 @@ def test_crawl(capsys):
assert type(qc[d].get_property("numPassingChecks").value) == int assert type(qc[d].get_property("numPassingChecks").value) == int
assert qc[d].get_property("numTotalChecks").value == total assert qc[d].get_property("numTotalChecks").value == total
assert qc[d].get_property("numPassingChecks").value == passed assert qc[d].get_property("numPassingChecks").value == passed
#
#
# def test_broken_metadata():
# print(f"\nData directory: {BROKEN_DATADIR}")
# print(os.listdir(BROKEN_DATADIR))
#
# retval, ent_qc = trigger_crawler(os.fspath(BROKEN_DATADIR))
#
# # stdout, stderr = capsys.readouterr()
#
# assert not retval
# The INI file must be located either in
# - $CWD/pylinkahead.ini
# - $HOME/.pylinkahead.ini
# - the location given in the env variable PYLINKAHEADINI
[Connection]
# url=https://demo.indiscale.com/
url=https://localhost:10443/
## If this option is set, the SSL certificate will be ignored. Use with care!
ssl_insecure=1
username=admin
## The password input method can be chosen with the `password_method` setting,
## which by default is set to `plain`.
##
## DEFAULT: the password method is `plain`, now the password must be saved as
## plain text.
password_method=input
# password=caosdb
## OR: `input`: username is optional, password is entered by the user directly
# password_method=input
## OR: `pass`: password is retrieved from the "pass" password manager
# password_method=pass
# password_identifier=...
## OR: `keyring`: using the system keyring/wallet (macOS, GNOME, KDE, Windows)
## requires installation of the keyring python package:
## pip install keyring
# password_method=keyring
timeout=10000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment