mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-06 07:47:53 +10:00
switch to external plugins
This commit is contained in:
@@ -63,7 +63,7 @@ class TestLDAPConfig(unittest.TestCase):
|
||||
|
||||
config = LDAPConfig(
|
||||
LDAP_ENABLED=True,
|
||||
LDAP_SERVER_URI="ldap://localhost:389",
|
||||
LDAP_SERVER_URI="ldap://ldap-test.localhost:389",
|
||||
LDAP_BIND_DN="cn=admin,dc=example,dc=com",
|
||||
LDAP_BIND_PASSWORD="password",
|
||||
LDAP_USER_BASE="ou=users,dc=example,dc=com",
|
||||
@@ -172,7 +172,7 @@ class TestArchiveBoxWithLDAP(unittest.TestCase):
|
||||
env={
|
||||
**os.environ,
|
||||
'LDAP_ENABLED': 'False',
|
||||
'LDAP_SERVER_URI': 'ldap://localhost:389',
|
||||
'LDAP_SERVER_URI': 'ldap://ldap-test.localhost:389',
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -468,7 +468,7 @@ class TestPluginMetadata(unittest.TestCase):
|
||||
def test_plugin_name_added(self):
|
||||
"""run_hook() should add plugin name to records."""
|
||||
# Simulate what run_hook() does
|
||||
script = Path('/archivebox/plugins/wget/on_Snapshot__50_wget.py')
|
||||
script = Path('/abx_plugins/plugins/wget/on_Snapshot__50_wget.py')
|
||||
plugin_name = script.parent.name
|
||||
|
||||
record = {'type': 'ArchiveResult', 'status': 'succeeded'}
|
||||
|
||||
Reference in New Issue
Block a user