Commit 028d492d authored by Gregory Cugat's avatar Gregory Cugat

Update code style

Update tests
parent 7e5a1875
......@@ -95,7 +95,12 @@ class SOLIDserverRest:
'content-type': 'application/json'
}
def query(self, service, params=None, ssl_verify=False, timeout=2, option=False):
def query(
self, service,
params=None,
ssl_verify=False,
timeout=2,
option=False):
""" send request to the API endpoint, returns request result """
if params is not None:
......
......@@ -34,7 +34,7 @@ echo '### Unitary tests ###' | tee -a report.txt
find . -name '*.pyc' -exec rm -f {} \;
echo '-------------------------------------------------------------------------' | tee -a report.txt
echo '### PYCODESTYLE ###' | tee -a report.txt
pycodestyle ./SOLIDserverRest/*.py | tee -a report.txt
pycodestyle --first ./SOLIDserverRest/*.py | tee -a report.txt
echo '-------------------------------------------------------------------------' | tee -a report.txt
echo '### COVERAGE ###' | tee -a report.txt
coverage run ./SOLIDserverRest/*.py | tee -a report.txt
......
......@@ -538,7 +538,7 @@ END of TEST AUTO
END => test.py
-------------------------------------------------------------------------
### PYCODESTYLE ###
./SOLIDserverRest/SOLIDserverRest.py:98:80: E501 line too long (85 > 79 characters)
./SOLIDserverRest/SOLIDserverRest.py:99:21: E127 continuation line over-indented for visual indent
-------------------------------------------------------------------------
### COVERAGE ###
============================= test session starts ==============================
......@@ -561,5 +561,5 @@ SOLIDserverRest/mapper.py 4 0 0 0 100%
TOTAL 123 15 26 8 85%
=========================== 6 passed in 5.87 seconds ===========================
=========================== 6 passed in 6.37 seconds ===========================
-------------------------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment