update codebase
This commit is contained in:
19
tests/test_api.py
Normal file
19
tests/test_api.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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!")
|
||||
Reference in New Issue
Block a user