Skip to content

Commit

Permalink
Fix: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
singh-lokendra committed Jul 18, 2019
1 parent 58a2295 commit 0e5bc05
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Expand Up @@ -7,13 +7,13 @@ environment:
PYTHON_VERSION: 3.5
PYTHON_ARCH: 32
- PYTHON: C:\\Python35-x64
PYTHON_VERSION: 3.4
PYTHON_VERSION: 3.5
PYTHON_ARCH: 64
- PYTHON: C:\\Python36
PYTHON_VERSION: 3.6
PYTHON_ARCH: 32
- PYTHON: C:\\Python36-x64
PYTHON_VERSION: 3.4
PYTHON_VERSION: 3.6
PYTHON_ARCH: 64
- PYTHON: C:\\Python37
PYTHON_VERSION: 3.7
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -28,7 +28,7 @@ script:
fi;
fi
- coverage run -m unittest --verbose --buffer tests
- coverage report --show-missing --fail-under 85 --include 'apertium/**'
- coverage report --show-missing --fail-under 85 --include 'apertium/**' --omit 'apertium/installer.py'
after_success:
- coveralls
notifications:
Expand Down
2 changes: 1 addition & 1 deletion apertium/__init__.py
Expand Up @@ -5,7 +5,7 @@

from apertium.analysis import analyze, Analyzer # noqa: F401
from apertium.generation import generate, Generator # noqa: F401
from apertium.installer import install_language_pack
from apertium.installer import install_language_pack # noqa: F401
from apertium.mode_search import search_path
from apertium.translation import translate, Translator # noqa: F401

Expand Down
3 changes: 2 additions & 1 deletion apertium/installer.py
@@ -1,6 +1,5 @@
from distutils.dir_util import copy_tree
from typing import Optional
import distro
import logging
import os
import platform
Expand All @@ -10,6 +9,8 @@
from urllib.request import urlretrieve
from zipfile import ZipFile

import distro


class Windows:
"""Download ApertiumWin64 and Move to %localappdata%"""
Expand Down

0 comments on commit 0e5bc05

Please sign in to comment.