diff --git a/tests/logs2024-12-14_11-38-38.txt b/tests/logs2024-12-14_11-38-38.txt deleted file mode 100644 index ecf7bd7..0000000 --- a/tests/logs2024-12-14_11-38-38.txt +++ /dev/null @@ -1 +0,0 @@ -Zip files: 0, Single files: 1, Failed downloads: 0 \ No newline at end of file diff --git a/tests/parsers/data/32014L0092.akn b/tests/parsers/data/akn/32014L0092.akn similarity index 100% rename from tests/parsers/data/32014L0092.akn rename to tests/parsers/data/akn/32014L0092.akn diff --git a/tests/parsers/data/it_senato_ddl_2013.xml b/tests/parsers/data/akn/it_senato_ddl_2013.xml similarity index 100% rename from tests/parsers/data/it_senato_ddl_2013.xml rename to tests/parsers/data/akn/it_senato_ddl_2013.xml diff --git a/tests/parsers/data/L_2011334EN.01002501.xml b/tests/parsers/data/formex/L_2011334EN.01002501.xml similarity index 100% rename from tests/parsers/data/L_2011334EN.01002501.xml rename to tests/parsers/data/formex/L_2011334EN.01002501.xml diff --git a/tests/parsers/data/L_202400903EN.000101.fmx.xml b/tests/parsers/data/formex/L_202400903EN.000101.fmx.xml similarity index 100% rename from tests/parsers/data/L_202400903EN.000101.fmx.xml rename to tests/parsers/data/formex/L_202400903EN.000101.fmx.xml diff --git a/tests/parsers/data/c008bcb6-e7ec-11ee-9ea8-01aa75ed71a1.0006.03/DOC_1.html b/tests/parsers/data/html/c008bcb6-e7ec-11ee-9ea8-01aa75ed71a1.0006.03/DOC_1.html similarity index 100% rename from tests/parsers/data/c008bcb6-e7ec-11ee-9ea8-01aa75ed71a1.0006.03/DOC_1.html rename to tests/parsers/data/html/c008bcb6-e7ec-11ee-9ea8-01aa75ed71a1.0006.03/DOC_1.html diff --git a/tests/parsers/test_akomantoso.py b/tests/parsers/test_akomantoso.py index 92a29d8..c14e1a0 100644 --- a/tests/parsers/test_akomantoso.py +++ b/tests/parsers/test_akomantoso.py @@ -4,7 +4,7 @@ import lxml.etree as etree # Define constants for file paths and directories -DATA_DIR = os.path.join(os.path.dirname(__file__), "data") +DATA_DIR = os.path.join(os.path.dirname(__file__), "data/akn") file_path = os.path.join(DATA_DIR, "32014L0092.akn") class TestAkomaNtosoParser(unittest.TestCase): diff --git a/tests/parsers/test_formex.py b/tests/parsers/test_formex.py index fab44bd..edf8426 100644 --- a/tests/parsers/test_formex.py +++ b/tests/parsers/test_formex.py @@ -4,7 +4,7 @@ import os -DATA_DIR = os.path.join(os.path.dirname(__file__), "data") +DATA_DIR = os.path.join(os.path.dirname(__file__), "data/formex") class TestFormex4Parser(unittest.TestCase): def setUp(self): diff --git a/ulit/download.py b/ulit/download.py index 5fd2a59..4c1f162 100644 --- a/ulit/download.py +++ b/ulit/download.py @@ -274,4 +274,4 @@ def print_list_to_file(filename, lst): # Simulate getting results from somewhere with open('./tests/results.json', 'r') as f: results = json.loads(f.read()) # Load the JSON data - document_path = download_documents(results, './tests/parsers/data', log_dir='./tests/logs', format='xhtml') \ No newline at end of file + document_path = download_documents(results, './tests/parsers/data/html', log_dir='./tests/logs', format='xhtml') \ No newline at end of file