mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-22 22:22:54 +02:00
test(data-extraction): Introduct load.py test and scrape test
This commit is contained in:
parent
d7f167a868
commit
4e25be5466
@ -81,3 +81,8 @@ def test_wait_for_download_condition() -> None:
|
||||
with TemporaryDirectory(dir="./") as temp_dir:
|
||||
prepare_temporary_dir(temp_dir, ["xml", "txt"])
|
||||
assert extract.wait_for_download_condition(temp_dir, 2) is False
|
||||
|
||||
|
||||
def test_scrape() -> None:
|
||||
with TemporaryDirectory(dir="./") as temp_dir:
|
||||
extract.scrape("GEA Farm Technologies GmbH", [temp_dir])
|
||||
|
@ -0,0 +1,8 @@
|
||||
"""Test load utils from Unternehmensregister."""
|
||||
from aki_prj23_transparenzregister.utils.data_extraction.unternehmensregister import (
|
||||
load,
|
||||
)
|
||||
|
||||
|
||||
def test_smoke() -> None:
|
||||
assert load
|
Loading…
x
Reference in New Issue
Block a user