20 lines
402 B
Python
20 lines
402 B
Python
from komgapi import komgapi
|
|
from komconfig import KomConfig
|
|
|
|
config = KomConfig()
|
|
|
|
client = komgapi(
|
|
url=config.komga.url,
|
|
username=config.komga.user,
|
|
password=config.komga.password,
|
|
)
|
|
|
|
|
|
def test_series_controller(client: komgapi):
|
|
assert client.series_controller.getAllSeries() is not None
|
|
|
|
|
|
if __name__ == "__main__":
|
|
test_series_controller(client)
|
|
print("All tests passed!")
|