Move python_apps/api_clients/ to api_client/
This commit is contained in:
parent
cf36eec5f8
commit
d06c898bcf
12 changed files with 0 additions and 0 deletions
|
@ -1,33 +0,0 @@
|
|||
import pytest
|
||||
from api_clients.utils import RequestProvider
|
||||
from api_clients.version1 import api_config
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def config():
|
||||
return {
|
||||
**api_config,
|
||||
"general": {
|
||||
"base_dir": "/test",
|
||||
"base_port": 80,
|
||||
"base_url": "localhost",
|
||||
"api_key": "TEST_KEY",
|
||||
},
|
||||
"api_base": "api",
|
||||
}
|
||||
|
||||
|
||||
def test_request_provider_init(config):
|
||||
request_provider = RequestProvider(config, {})
|
||||
assert len(request_provider.available_requests()) == 0
|
||||
|
||||
|
||||
def test_request_provider_contains(config):
|
||||
endpoints = {
|
||||
"upload_recorded": "/1/",
|
||||
"update_media_url": "/2/",
|
||||
"list_all_db_files": "/3/",
|
||||
}
|
||||
request_provider = RequestProvider(config, endpoints)
|
||||
for endpoint in endpoints:
|
||||
assert endpoint in request_provider.requests
|
Loading…
Add table
Add a link
Reference in a new issue