update gitignore
This commit is contained in:
parent
c22079068d
commit
ac08ca855c
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,4 +1,9 @@
|
||||
# IDES
|
||||
.idea/
|
||||
.vs/
|
||||
.vscode/
|
||||
|
||||
# PYTHON
|
||||
.venv/
|
||||
**/__pycache__/
|
||||
**/.env*
|
||||
|
@ -2,10 +2,11 @@ import pytest
|
||||
from apiclient.config import get_cfg
|
||||
from apiclient.oauth_helper import get_legacy_token
|
||||
|
||||
|
||||
ENV = 'qa' # This would be set in an actual OS env var on the execution platform
|
||||
CFG = get_cfg(ENV) # needed for the token, and the full api url
|
||||
|
||||
application_json = {'Content-Type': 'application/json'}
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def role_get_call():
|
||||
@ -14,7 +15,7 @@ def role_get_call():
|
||||
"token": token,
|
||||
"method": "GET",
|
||||
"url": CFG["api_url"] + '/data-delivery/role',
|
||||
"headers": {'Content-Type': 'application/json'},
|
||||
"headers": application_json,
|
||||
"body": {"application_id": 1}
|
||||
}
|
||||
return api_call
|
||||
@ -27,7 +28,7 @@ def acms_redaction_get_call():
|
||||
"token": token,
|
||||
"method": "GET",
|
||||
"url": CFG["api_url"] + '/data-delivery/acmsredaction',
|
||||
"headers": {'Content-Type': 'application/json'},
|
||||
"headers": application_json,
|
||||
"body": {"redaction_id": 1}
|
||||
}
|
||||
return api_call
|
||||
@ -40,11 +41,12 @@ def client_applications_get_call():
|
||||
"token": token,
|
||||
"method": "GET",
|
||||
"url": CFG["api_url"] + '/data-delivery/client-applications',
|
||||
"headers": {'Content-Type': 'application/json'},
|
||||
"headers": application_json,
|
||||
"body": {}
|
||||
}
|
||||
return api_call
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def endpoint_get_call():
|
||||
token = get_legacy_token(ENV)
|
||||
@ -52,7 +54,7 @@ def endpoint_get_call():
|
||||
"token": token,
|
||||
"method": "GET",
|
||||
"url": CFG["api_url"] + '/data-delivery/endpoint',
|
||||
"headers": {'Content-Type': 'application/json'},
|
||||
"headers": application_json,
|
||||
"body": {
|
||||
"endpoint_id": 1001
|
||||
}
|
||||
@ -67,7 +69,7 @@ def redaction_type_get_call():
|
||||
"token": token,
|
||||
"method": "GET",
|
||||
"url": CFG["api_url"] + '/data-delivery/redactiontype',
|
||||
"headers": {'Content-Type': 'application/json'},
|
||||
"headers": application_json,
|
||||
"body": {}
|
||||
}
|
||||
return api_call
|
||||
|
Loading…
Reference in New Issue
Block a user