Refactor code layout, add extra tests
Some checks failed
Build and push containers / metadata (push) Has been cancelled
Build and push containers / build-push-containers (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built 📦 package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

This commit is contained in:
dgtlmoon
2025-03-18 10:40:22 +01:00
committed by GitHub
parent 7e7d5dc383
commit 73189672c3
89 changed files with 2541 additions and 1836 deletions

View File

@@ -12,7 +12,7 @@ def test_basic_search(client, live_server, measure_memory_usage):
'https://localhost:5000?second-result=1'
]
res = client.post(
url_for("import_page"),
url_for("imports.import_page"),
data={"urls": "\r\n".join(urls)},
follow_redirects=True
)
@@ -27,7 +27,7 @@ def test_basic_search(client, live_server, measure_memory_usage):
# By Title
res = client.post(
url_for("edit_page", uuid="first"),
url_for("ui.ui_edit.edit_page", uuid="first"),
data={"title": "xxx-title", "url": urls[0], "tags": "", "headers": "", 'fetch_backend': "html_requests"},
follow_redirects=True
)
@@ -45,7 +45,7 @@ def test_search_in_tag_limit(client, live_server, measure_memory_usage):
'https://localhost:5000?second-result=1 tag-two'
]
res = client.post(
url_for("import_page"),
url_for("imports.import_page"),
data={"urls": "\r\n".join(urls)},
follow_redirects=True
)
@@ -61,7 +61,7 @@ def test_search_in_tag_limit(client, live_server, measure_memory_usage):
# By Title
res = client.post(
url_for("edit_page", uuid="first"),
url_for("ui.ui_edit.edit_page", uuid="first"),
data={"title": "xxx-title", "url": urls[0].split(' ')[0], "tags": urls[0].split(' ')[1], "headers": "",
'fetch_backend': "html_requests"},
follow_redirects=True