Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a58ba138 authored by LETORT Sebastien's avatar LETORT Sebastien
Browse files

Pep8 rules updated for tests.

parent 436fb669
No related branches found
No related tags found
2 merge requests!4Client api,!2Continuous integration, more tests
......@@ -5,3 +5,11 @@ markers =
error: test when an error occured
success: test output on successfull request
dbg: for debug.
pep8: workaround for https://bitbucket.org/pytest-dev/pytest-pep8/issues/23/
# spaces rules are disabled
pep8ignore = E201 E202 E203 E221 E231 E272
# developper are recommanded to use a max length = 80
# but as doctrings are quite longer, we allow up to 100.
pep8maxlinelength = 100
......@@ -9,14 +9,15 @@ import tempfile
# not standard
import pytest
# local import
import allgo # I need to modify constant
from allgo import *
if 2 == sys.version_info.major:
from mock import Mock, patch
else:
from unittest.mock import Mock, patch
# local import
import allgo # I need to modify constant
from allgo import *
# ================================================
class TestStatusError:
......@@ -405,7 +406,7 @@ def test_download_file__default(mock_get, client):
file_url = "https://whatever.fr/" + filename
filepath = client.download_file(file_url)
assert "./"+filename == filepath
assert "./" + filename == filepath
content = ""
with open(filepath, "r") as file_out:
......@@ -547,7 +548,7 @@ def test_get_log__big(mock_get, mock_status, client):
for c in alphabet:
chunk = ''
for i in range(8):
chunk += c*10 + "\n"
chunk += c * 10 + "\n"
file_content.append(chunk)
# file_content is 5 chunks of 8 lines each
# and each line is the same letter repeated 10 times.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment