minor fixes

This commit is contained in:
www
2020-12-25 21:38:49 +00:00
parent e707158c16
commit c20b688237
4 changed files with 29 additions and 4 deletions

21
ep_test.py Normal file
View File

@@ -0,0 +1,21 @@
from wiki.api import EtherpadLiteLazyAPI
import logging
logging.basicConfig(
level=logging.DEBUG,
handlers=[#logging.FileHandler("example1.log"),
logging.StreamHandler()])
logger=logging.getLogger(__name__)
logger.debug("Starting Test ...")
ep=EtherpadLiteLazyAPI(
url="http://etherpad:9101",
keyfile="etherpad/APIKEY.txt",
groupmapper="fetwiki"
)
print(ep.padExists("test"))
print(ep.getPadHTML("test"))
print(ep.createPadifNotExists("test"))
print(ep.setPadHTML("test","sdf"))
print(ep.getPadLink("test"))