diff --git a/archivebox/api/tests.py b/archivebox/api/tests.py index e6e8cce6..adaf49da 100644 --- a/archivebox/api/tests.py +++ b/archivebox/api/tests.py @@ -1,30 +1,30 @@ __package__ = 'archivebox.api' -from django.test import TestCase -from ninja.testing import TestClient +# from django.test import TestCase +# from ninja.testing import TestClient -from .routes_cli import router +# from .routes_cli import router -class ArchiveBoxCLIAPITestCase(TestCase): - def setUp(self): - self.client = TestClient(router) +# class ArchiveBoxCLIAPITestCase(TestCase): +# def setUp(self): +# self.client = TestClient(router) - def test_add_endpoint(self): - response = self.client.post("/add", json={"urls": ["http://example.com"], "tag": "testTag1,testTag2"}) - self.assertEqual(response.status_code, 200) - self.assertTrue(response.json()["success"]) +# def test_add_endpoint(self): +# response = self.client.post("/add", json={"urls": ["http://example.com"], "tag": "testTag1,testTag2"}) +# self.assertEqual(response.status_code, 200) +# self.assertTrue(response.json()["success"]) - def test_remove_endpoint(self): - response = self.client.post("/remove", json={"filter_patterns": ["http://example.com"]}) - self.assertEqual(response.status_code, 200) - self.assertTrue(response.json()["success"]) +# def test_remove_endpoint(self): +# response = self.client.post("/remove", json={"filter_patterns": ["http://example.com"]}) +# self.assertEqual(response.status_code, 200) +# self.assertTrue(response.json()["success"]) - def test_update_endpoint(self): - response = self.client.post("/update", json={}) - self.assertEqual(response.status_code, 200) - self.assertTrue(response.json()["success"]) +# def test_update_endpoint(self): +# response = self.client.post("/update", json={}) +# self.assertEqual(response.status_code, 200) +# self.assertTrue(response.json()["success"]) - def test_list_all_endpoint(self): - response = self.client.post("/list_all", json={}) - self.assertEqual(response.status_code, 200) - self.assertTrue(response.json()["success"]) +# def test_list_all_endpoint(self): +# response = self.client.post("/list_all", json={}) +# self.assertEqual(response.status_code, 200) +# self.assertTrue(response.json()["success"]) diff --git a/archivebox/machine/__init__.py b/archivebox/machine/__init__.py new file mode 100644 index 00000000..1e67edea --- /dev/null +++ b/archivebox/machine/__init__.py @@ -0,0 +1 @@ +__package__ = 'archivebox.machine' diff --git a/archivebox/machine/apps.py b/archivebox/machine/apps.py index f5c0867b..960ffefe 100644 --- a/archivebox/machine/apps.py +++ b/archivebox/machine/apps.py @@ -1,3 +1,5 @@ +__package__ = 'archivebox.machine' + from django.apps import AppConfig diff --git a/archivebox/plugins_auth/__init__.py b/archivebox/plugins_auth/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/archivebox/plugins_auth/ldap/apps.py b/archivebox/plugins_auth/ldap/apps.py index f6d8d51c..22aa853e 100644 --- a/archivebox/plugins_auth/ldap/apps.py +++ b/archivebox/plugins_auth/ldap/apps.py @@ -1,4 +1,4 @@ -__package__ = 'plugins_auth.ldap' +__package__ = 'archivebox.plugins_auth.ldap' import inspect diff --git a/archivebox/plugins_pkg/__init__.py b/archivebox/plugins_pkg/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/archivebox/plugins_pkg/npm/apps.py b/archivebox/plugins_pkg/npm/apps.py index a1d32c47..2f8a4a73 100644 --- a/archivebox/plugins_pkg/npm/apps.py +++ b/archivebox/plugins_pkg/npm/apps.py @@ -1,4 +1,4 @@ -__package__ = 'plugins_pkg.npm' +__package__ = 'archivebox.plugins_pkg.npm' from pathlib import Path from typing import List, Optional diff --git a/archivebox/plugins_pkg/playwright/apps.py b/archivebox/plugins_pkg/playwright/apps.py index d1a0aa98..a065be43 100644 --- a/archivebox/plugins_pkg/playwright/apps.py +++ b/archivebox/plugins_pkg/playwright/apps.py @@ -1,3 +1,5 @@ +__package__ = 'archivebox.plugins_pkg.playwright' + import platform from pathlib import Path from typing import List, Optional, Dict, ClassVar diff --git a/archivebox/plugins_pkg/puppeteer/apps.py b/archivebox/plugins_pkg/puppeteer/apps.py index c32c31da..adec6032 100644 --- a/archivebox/plugins_pkg/puppeteer/apps.py +++ b/archivebox/plugins_pkg/puppeteer/apps.py @@ -1,3 +1,5 @@ +__package__ = 'archivebox.plugins_pkg.puppeteer' + import platform from pathlib import Path from typing import List, Optional, Dict, ClassVar diff --git a/docs b/docs index a39e98cb..38cc9549 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit a39e98cb12dacc3249a83d5149b40034fcd671d4 +Subproject commit 38cc95490020044aa24da49511ba93844e704853