Skip to content

Commit

Permalink
we don't really need nose
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Mar 2, 2015
1 parent 503d01c commit e8bcd37
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
4 changes: 4 additions & 0 deletions tests/.coveragerc → .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[run]
branch = True
source = bundlewrap

[report]
exclude_lines =
pragma: no cover
Expand Down
16 changes: 5 additions & 11 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,12 @@ def run_pylint(ignore_warnings=True):


def run_tests(coverage=True):
sys.path.append(PROJECT_PATH + "/src")
os.environ['BWCOLORS'] = "0"
with lcd(PROJECT_PATH + "/tests"):
if coverage:
local(
"nosetests "
"--with-cov --cov bundlewrap --cov-config .coveragerc 2>&1"
)
local("coverage combine")
local("mv .coverage ..")
else:
local("nosetests")
if coverage:
local("coverage run setup.py test")
local("coverage combine")
else:
local("nosetests")


def submit_coverage():
Expand Down
2 changes: 0 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ distribute
Fabric
Mako
mock
nose
nose-cov
passlib
requests
Sphinx
Expand Down
2 changes: 0 additions & 2 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ Fabric>=1.5.0
Jinja2
Mako
mock
nose
nose-cov
passlib
requests>=1.0.0
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
url="http://bundlewrap.org",
package_dir={'': "src"},
packages=find_packages("src"),
test_suite="tests",
entry_points={
'console_scripts': [
"bw=bundlewrap.cmdline:main",
Expand Down

0 comments on commit e8bcd37

Please sign in to comment.