Commit 4e0e3f27 authored by Jakob Lerch's avatar Jakob Lerch
Browse files

add test_etherpad

parent 04ff06f8
from configparser import ConfigParser
from functools import cache
from protocol_translator.pad import Etherpad
@cache
def init():
api_keys = ConfigParser()
api_keys.read("api_keys.conf")
e = Etherpad("https://collab.fem-net.de/pad/p/test2",
api_keys["default"]["etherpad_key"])
return e
def test_init():
e = init()
assert isinstance(e, pad.Etherpad)
def test_read():
e = init()
assert e.read() == "testtest"
def test_write():
e = init()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment