Skip to content

Commit

Permalink
Added configuration files for travis and coveralls. Removed unused im…
Browse files Browse the repository at this point in the history
…ports.
  • Loading branch information
soldag committed May 7, 2015
1 parent 99733cc commit 63385e1
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[report]
omit =
*__init__*
test_*
69 changes: 69 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# IntelliJ IDEA configuration
.idea/

# Temp-testdata
/*.csv
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: python
python:
- 2.7

install:
- sudo apt-get install libxml2-dev libxslt-dev python-dev
- pip install -r requirements.txt
- pip install pytest-cov
- pip install coveralls

script:
- py.test --verbose --cov-config .coveragerc --cov dumpconverter --cov-report xml

after_success:
- coveralls
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mock==1.0.1
pytest==2.7.0
requests==2.7.0
5 changes: 0 additions & 5 deletions sqlScriptBuilder.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
from lxml import html
import requests
from collections import OrderedDict
from operator import itemgetter
import time
import codecs
import unicodedata
import os
import json
import uuid
Expand Down
2 changes: 0 additions & 2 deletions test_sqlScriptBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import pytest
from mock import Mock
from mock import patch
from mock import create_autospec

from sqlScriptBuilder import sqlScriptBuilder

Expand Down

0 comments on commit 63385e1

Please sign in to comment.