| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,9 +36,9 @@ jobs: | |||
| 36 | 36 | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| 37 | 37 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
| 38 | 38 | flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
| 39 | - - name: Test with nose | ||
| 39 | + - name: Test with pytest | ||
| 40 | 40 | run: | | |
| 41 | - pip install nose | ||
| 41 | + pip install pytest | ||
| 42 | 42 | ulimit -n 48 | |
| 43 | 43 | ulimit -n | |
| 44 | - nosetests -v | ||
| 44 | + pytest -v | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,5 @@ | |||
| 1 | 1 | PYTHON = python | |
| 2 | 2 | SETUP = $(PYTHON) setup.py | |
| 3 | - TESTRUNNER = $(shell which nosetests) | ||
| 4 | 3 | TESTFLAGS = | |
| 5 | 4 | ||
| 6 | 5 | all:: | |
@@ -37,5 +36,5 @@ clean:: | |||
| 37 | 36 | rm -f *.so | |
| 38 | 37 | ||
| 39 | 38 | coverage:: build | |
| 40 | - PYTHONPATH=. $(PYTHON) $(TESTRUNNER) --cover-package=gitdb --with-coverage --cover-erase --cover-inclusive gitdb | ||
| 39 | + PYTHONPATH=. $(PYTHON) -m pytest --cov=gitdb gitdb | ||
| 41 | 40 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ If you want to go up to 20% faster, you can install gitdb-speedups with: | |||
| 30 | 30 | REQUIREMENTS | |
| 31 | 31 | ============ | |
| 32 | 32 | ||
| 33 | - * Python Nose - for running the tests | ||
| 33 | + * pytest - for running the tests | ||
| 34 | 34 | ||
| 35 | 35 | SOURCE | |
| 36 | 36 | ====== | |
@@ -45,7 +45,7 @@ Once the clone is complete, please be sure to initialize the submodules using | |||
| 45 | 45 | ||
| 46 | 46 | Run the tests with | |
| 47 | 47 | ||
| 48 | - nosetests | ||
| 48 | + pytest | ||
| 49 | 49 | ||
| 50 | 50 | DEVELOPMENT | |
| 51 | 51 | =========== | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -233,8 +233,7 @@ | |||
| 233 | 233 | </valuemap> | |
| 234 | 234 | <valuemap key="ProjectExplorer.Target.RunConfiguration.1" type="QVariantMap"> | |
| 235 | 235 | <valuelist key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments" type="QVariantList"> | |
| 236 | - <value type="QString">/usr/bin/nosetests</value> | ||
| 237 | - <value type="QString">-s</value> | ||
| 236 | + <value type="QString">/usr/bin/pytest</value> | ||
| 238 | 237 | <value type="QString">gitdb/test/test_pack.py</value> | |
| 239 | 238 | </valuelist> | |
| 240 | 239 | <value key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase" type="int">2</value> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,15 +16,15 @@ | |||
| 16 | 16 | import random | |
| 17 | 17 | import sys | |
| 18 | 18 | ||
| 19 | - from nose.plugins.skip import SkipTest | ||
| 19 | + import pytest | ||
| 20 | 20 | ||
| 21 | 21 | class TestPackDB(TestDBBase): | |
| 22 | 22 | ||
| 23 | 23 | @with_rw_directory | |
| 24 | 24 | @with_packs_rw | |
| 25 | 25 | def test_writing(self, path): | |
| 26 | 26 | if sys.platform == "win32": | |
| 27 | - raise SkipTest("FIXME: Currently fail on windows") | ||
| 27 | + pytest.skip("FIXME: Currently fail on windows") | ||
| 28 | 28 | ||
| 29 | 29 | pdb = PackedDB(path) | |
| 30 | 30 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,8 +65,8 @@ def skip_on_travis_ci(func): | |||
| 65 | 65 | @wraps(func) | |
| 66 | 66 | def wrapper(self, *args, **kwargs): | |
| 67 | 67 | if 'TRAVIS' in os.environ: | |
| 68 | - import nose | ||
| 69 | - raise nose.SkipTest("Cannot run on travis-ci") | ||
| 68 | + import pytest | ||
| 69 | + pytest.skip("Cannot run on travis-ci") | ||
| 70 | 70 | # end check for travis ci | |
| 71 | 71 | return func(self, *args, **kwargs) | |
| 72 | 72 | # end wrapper | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,7 @@ | |||
| 26 | 26 | from gitdb.exc import UnsupportedOperation | |
| 27 | 27 | from gitdb.util import to_bin_sha | |
| 28 | 28 | ||
| 29 | - from nose import SkipTest | ||
| 29 | + import pytest | ||
| 30 | 30 | ||
| 31 | 31 | import os | |
| 32 | 32 | import tempfile | |
@@ -246,4 +246,4 @@ def rewind_streams(): | |||
| 246 | 246 | def test_pack_64(self): | |
| 247 | 247 | # TODO: hex-edit a pack helping us to verify that we can handle 64 byte offsets | |
| 248 | 248 | # of course without really needing such a huge pack | |
| 249 | - raise SkipTest() | ||
| 249 | + pytest.skip('not implemented') | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments