chore: rename api_client to api-client (#1727)

This commit is contained in:
Jonas L 2022-04-04 10:25:38 +02:00 committed by GitHub
parent e623c1f0df
commit fef38fb131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 6 additions and 6 deletions

View file

@ -1,26 +0,0 @@
from libretime_api_client.utils import RequestProvider
def test_request_provider_init():
request_provider = RequestProvider(
base_url="http://localhost/test",
api_key="test_key",
endpoints={},
)
assert len(request_provider.available_requests()) == 0
def test_request_provider_contains():
endpoints = {
"upload_recorded": "/1/",
"update_media_url": "/2/",
"list_all_db_files": "/3/",
}
request_provider = RequestProvider(
base_url="http://localhost/test",
api_key="test_key",
endpoints=endpoints,
)
for endpoint in endpoints:
assert endpoint in request_provider.requests