You've already forked akaunting-py
Add VSCode config
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,5 +1,7 @@
|
||||
.vscode
|
||||
# Cached python code
|
||||
__pycache__
|
||||
# Cached test code
|
||||
.pytest_cache
|
||||
.pytest_cache
|
||||
# Coverage reports
|
||||
.coverage
|
||||
coverage.xml
|
||||
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"configurations":[
|
||||
{
|
||||
"name": "Python: Debug Tests",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"purpose": ["debug-test"],
|
||||
"console": "integratedTerminal",
|
||||
"env": {
|
||||
"PYTEST_ADDOPTS": "--no-cov"
|
||||
},
|
||||
"type": "python",
|
||||
"justMyCode": false
|
||||
}
|
||||
]
|
||||
}
|
||||
11
.vscode/settings.json
vendored
Normal file
11
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"python.testing.pytestArgs": [
|
||||
"-v",
|
||||
"--cov=akauntingpy",
|
||||
"--cov-report=xml",
|
||||
"--pdb",
|
||||
"tests/"
|
||||
],
|
||||
"python.testing.unittestEnabled": false,
|
||||
"python.testing.pytestEnabled": true
|
||||
}
|
||||
@@ -57,10 +57,7 @@ class Client(object):
|
||||
print(response)
|
||||
response_ = response.json()
|
||||
print(response_)
|
||||
# try:
|
||||
# result = response_['status']
|
||||
# except KeyError:
|
||||
# result = response_['status_code']
|
||||
|
||||
if response.status_code == 401:
|
||||
raise exceptions.MissingPermission(response_['message'])
|
||||
elif response.status_code == 422:
|
||||
|
||||
Reference in New Issue
Block a user