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