Skip to content

Commit

Permalink
Reorganised example files
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioNar committed Dec 14, 2024
1 parent ab4ba44 commit 208dcfd
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/logs2024-12-14_11-38-38.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/parsers/test_akomantoso.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tests/parsers/test_formex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion ulit/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
document_path = download_documents(results, './tests/parsers/data/html', log_dir='./tests/logs', format='xhtml')

0 comments on commit 208dcfd

Please sign in to comment.