Skip to content

Commit a1935ec

Browse files
committed
Fix linter errors, add linter to tox
1 parent ba2a8ab commit a1935ec

27 files changed

+33
-31
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
run:
1111
name: "tests & coverage"
1212
runs-on: macos-latest
13+
strategy:
14+
matrix:
15+
python-version: [3.8]
16+
1317
env:
1418
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
1519
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
@@ -19,7 +23,7 @@ jobs:
1923
- name: Set up Python ${{ matrix.python-version }}
2024
uses: actions/setup-python@v2
2125
with:
22-
python-version: 3.8
26+
python-version: ${{ matrix.python-version }}
2327

2428
- name: Install test dependencies
2529
run: |

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""Common pytest fixtures."""
1212

1313

14-
1514
from contextlib import contextmanager
1615
import os
1716
from shutil import rmtree

tests/test_background.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""Unit tests for :mod:`workflow.background`."""
1212

1313

14-
1514
import os
1615
from time import sleep
1716

tests/test_notify.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""Unit tests for notifications."""
1212

1313

14-
1514
import hashlib
1615
import logging
1716
import os

tests/test_util_atomic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""Unit tests for :func:`~workflow.util.atomic_writer`."""
1212

1313

14-
1514
import json
1615
import os
1716

tests/test_util_lockfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""Test LockFile functionality."""
1212

1313

14-
1514
from collections import namedtuple
1615
from multiprocessing import Pool
1716
import os

tests/test_util_uninterruptible.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""Unit tests for ``uninterruptible`` decorator."""
1212

1313

14-
1514
import os
1615
import signal
1716

tests/test_web.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,15 @@ def test_file_upload_without_form_data(self):
344344
def test_file_upload_with_unicode(self):
345345
"""File upload with Unicode contents is converted to bytes"""
346346
url = HTTPBIN_URL + '/post'
347+
content = 'Hére ïs søme ÜÑÎÇÒDÈ™'
347348
files = {'file': {'filename': 'cönfüsed.txt',
348-
'content': 'Hére ïs søme ÜÑÎÇÒDÈ™'
349+
'content': content
349350
}}
350351
r = web.post(url, files=files)
351352
self.assertEqual(r.status_code, 200)
352353
data = r.json()
354+
bindata = data['files']['file']
355+
self.assertEqual(bindata, content)
353356

354357
def test_json_encoding(self):
355358
"""JSON decoded correctly"""

tests/test_web_http_encoding.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""HTTP unit tests."""
1212

1313

14-
1514
import os
1615

1716
import pytest

tests/test_workflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""Unit tests for :mod:`workflow.Workflow`."""
1212

1313

14-
1514
import logging
1615
import os
1716
import sys

0 commit comments

Comments
 (0)