feat: rename AirtimeApiClient to ApiClient

This commit is contained in:
jo 2022-07-22 13:27:16 +02:00 committed by Kyle Robbertze
parent 6f2724dad1
commit 473e770e8a
13 changed files with 15 additions and 15 deletions

View file

@ -120,7 +120,7 @@ api_endpoints[
################################################################################
# Airtime API Version 1 Client
################################################################################
class AirtimeApiClient:
class ApiClient:
API_BASE = "/api"
UPLOAD_RETRIES = 3
UPLOAD_WAIT = 60

View file

@ -25,7 +25,7 @@ api_endpoints["file_url"] = "files/{id}/"
api_endpoints["file_download_url"] = "files/{id}/download/"
class AirtimeApiClient:
class ApiClient:
API_BASE = "/api/v2"
def __init__(self, logger=None, config_path="/etc/libretime/config.yml"):

View file

@ -2,7 +2,7 @@ from pathlib import Path
import pytest
from libretime_api_client.v2 import AirtimeApiClient
from libretime_api_client.v2 import ApiClient
@pytest.fixture()
@ -19,7 +19,7 @@ general:
def test_api_client(config_filepath):
client = AirtimeApiClient(config_path=config_filepath)
client = ApiClient(config_path=config_filepath)
assert callable(client.services.version_url)
assert callable(client.services.schedule_url)
assert callable(client.services.webstream_url)