*Correct* Coverage Tests

This commit is contained in:
Kepoor Hampond 2017-03-13 21:41:38 -07:00
parent 558ee9f8cf
commit 310fdfc148
8 changed files with 18 additions and 6 deletions

1
.coverage Normal file
View file

@ -0,0 +1 @@
!coverage.py: This is a private format, don't read it directly!{"lines": {"/home/kepoor/Code/irs/irs/metadata.py": [2, 3, 4, 5, 8, 42, 11, 12, 13, 61, 48, 20, 21, 22, 69, 25, 28, 37, 30, 31], "/home/kepoor/Code/irs/irs/utils.py": [192, 131, 132, 133, 135, 8, 137, 11, 12, 142, 15, 145, 18, 148, 22, 151, 157, 33, 162, 40, 47, 243, 54, 202, 64, 193, 194, 195, 196, 197, 198, 199, 200, 201, 74, 203, 204, 205, 206, 207, 209, 87, 143, 92, 98, 234, 168, 115], "/home/kepoor/Code/irs/irs/config.py": [], "/home/kepoor/Code/irs/irs/__init__.py": [1], "/home/kepoor/Code/irs/irs/ripper.py": [2, 3, 4, 7, 8, 9, 138, 12, 13, 14, 15, 144, 141, 86, 24, 25, 27, 28, 228, 40, 246, 268], "/home/kepoor/Code/irs/irs/cli.py": []}}

View file

@ -15,7 +15,7 @@ install:
script:
- python setup.py install
- nosetests --with-coverage
- nosetests --with-coverage --cover-package=irs
after_success:
- coveralls

View file

@ -6,6 +6,7 @@ Ironic Redistribution System
[![License: GNU](https://img.shields.io/badge/License-GNU-yellow.svg)](http://www.gnu.org/licenses/gpl.html)
[![Stars](https://img.shields.io/github/stars/kepoorhampond/irs.svg)](https://github.com/kepoorhampond/irs/stargazers)
[![Build Status](https://travis-ci.org/kepoorhampond/irs.svg?branch=master)](https://travis-ci.org/kepoorhampond/irs)
[![Coverage Status](https://coveralls.io/repos/github/kepoorhampond/irs/badge.svg?branch=master)](https://coveralls.io/github/kepoorhampond/irs?branch=master)
[![PyPI](https://img.shields.io/badge/PyPi-irs-blue.svg)](https://pypi.python.org/pypi/irs)
> A music downloader that understands your metadata needs.

View file

@ -7,7 +7,7 @@ setup(
url='https://github.com/kepoorhampond/irs',
author='Kepoor Hampond',
author_email='kepoorh@gmail.com',
license='GNU',
license='GPL',
packages =['irs'],
install_requires=[
'bs4',

View file

@ -1,3 +1,5 @@
from irs.ripper import Ripper
Ripper().spotify_list("album", "Da Frame 2R / Matador")
print ("[*] Testing `album.py`")
Ripper().spotify_list("album", "Da Frame 2R / Matador")
print ("[+] Passed!")

View file

@ -1,3 +1,5 @@
from irs.ripper import Ripper
Ripper().spotify_list("playlist", "IRS Testing", "prakkillian")
print ("[*] Testing `playlist.py`")
Ripper().spotify_list("playlist", "IRS Testing", "prakkillian")
print ("[+] Passed!")

View file

@ -1,6 +1,8 @@
from irs.ripper import Ripper
import os
print ("[*] Testing `post_processors.py`")
if not os.path.exists("test_dir"):
os.makedirs("test_dir")
Ripper({
@ -15,4 +17,6 @@ Ripper({
"location": "test_dir/",
"organize": True,
}
}).playlist("IRS Testing", "prakkillian")
}).playlist("IRS Testing", "prakkillian")
print ("[+] Passed!")

View file

@ -1,3 +1,5 @@
from irs.ripper import Ripper
Ripper().song("Da Frame 2R", "Arctic Monkeys")
print ("[*] Testing `song.py`")
Ripper().song("Da Frame 2R", "Arctic Monkeys")
print ("[+] Passed!")