Skip to content

Commit e90bc15

Browse files
committed
Fix linting issues in test code and avoided use of package name in .travis.yml to make it easier to reuse between projects
1 parent d88faff commit e90bc15

6 files changed

Lines changed: 10 additions & 8 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ install:
77
- python setup.py install
88
- pip install bandit codecov pycodestyle mypy typing
99
script:
10-
- pycodestyle --first confluence
11-
- bandit -r confluence
12-
- mypy --py2 confluence
10+
- pycodestyle --first --exclude venv
11+
- bandit -r . -x venv,tests,docs
12+
- mypy --py2
1313
- python setup.py test --addopts "--cov confluence tests"
1414
after_success:
1515
- codecov

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@
156156
]
157157

158158

159-
# -- Extension configuration -------------------------------------------------
159+
# -- Extension configuration -------------------------------------------------

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import logging
22

33
logger = logging.getLogger(__name__)
4-
logger.addHandler(logging.NullHandler())
4+
logger.addHandler(logging.NullHandler())

tests/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import logging
22

33
logger = logging.getLogger(__name__)
4-
logger.addHandler(logging.NullHandler())
4+
logger.addHandler(logging.NullHandler())

tests/models/test_auditrecord.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
logger.addHandler(logging.NullHandler())
66

77

8-
def test_create_audit_record():
8+
def test_create_audit_record():
99
a = AuditRecord({
1010
"author": {
1111
"type": "user",

tests/models/test_longtask.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ def test_create_full_json():
1515
"percentageComplete": 100,
1616
"successful": True,
1717
"messages": [{
18-
"translation": "Finished PDF space export. Download <a href=\"/confluence/download/temp/pdfexport-20180111-110118-1209-23/x-110118-1209-24.pdf\">here</a>.",
18+
"translation": "Finished PDF space export. Download <a "
19+
"href=\"/confluence/download/temp/pdfexport-20180111-110118-1209-23/x-110118-1209-24.pdf"
20+
"\">here</a>.",
1921
"args": []
2022
}]
2123
})

0 commit comments

Comments
 (0)