Skip to content

Commit

Permalink
Switch to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 25, 2021
1 parent 434595b commit bed9c02
Show file tree
Hide file tree
Showing 71 changed files with 11 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from holoviews.core.data import Dataset
from holoviews.util.transform import dim

from .testpandasinterface import BasePandasInterfaceTests
from .test_pandasinterface import BasePandasInterfaceTests


class DaskDatasetTest(BasePandasInterfaceTests):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from .base import (
GriddedInterfaceTests, InterfaceTests, HomogeneousColumnTests, DatatypeContext
)
from .testimageinterface import (
from .test_imageinterface import (
BaseImageElementInterfaceTests, BaseRGBElementInterfaceTests,
BaseHSVElementInterfaceTests
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from holoviews.element import Path, Points, Polygons
from holoviews.element.comparison import ComparisonTestCase

from .testmultiinterface import GeomTests
from .test_multiinterface import GeomTests


class RoundTripTests(ComparisonTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
from holoviews.core.spaces import HoloMap
from holoviews.element import Image, RGB, HSV, QuadMesh

from .testimageinterface import (
from .test_imageinterface import (
BaseImageElementInterfaceTests, BaseRGBElementInterfaceTests,
BaseHSVElementInterfaceTests
)
from .testgridinterface import BaseGridInterfaceTests
from .test_gridinterface import BaseGridInterfaceTests


class XArrayInterfaceTests(BaseGridInterfaceTests):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from holoviews.element.comparison import ComparisonTestCase

from ..utils import LoggingComparisonTestCase
from .testdimensioned import CustomBackendTestCase, TestObj
from .test_dimensioned import CustomBackendTestCase, TestObj

XY = Stream.define('XY', x=0,y=0)
X = Stream.define('X', x=0)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from holoviews import Store, Element, Curve, Overlay, Layout
from holoviews.core.pprint import PrettyPrinter

from .testdimensioned import CustomBackendTestCase, TestObj
from .test_dimensioned import CustomBackendTestCase, TestObj


class PrettyPrintTest(ComparisonTestCase):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@

# Test requirements
extras_require['tests'] = [
'nose',
'pytest',
'pytest-cov',
'mock',
'flake8',
'coveralls',
Expand Down
12 changes: 2 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[tox]
# python version test group extra envs extra commands
envlist = {py36,py37,py38}-{flakes,unit,examples,all_recommended,regression}-{default}-{dev,pkg}
envlist = {py36,py37,py38}-{flakes,unit,examples,all_recommended}-{default}-{dev,pkg}

[_flakes]
description = Flake check python
Expand All @@ -13,13 +13,7 @@ commands = flake8 holoviews
[_unit]
description = Run unit tests with coverage
deps = .[unit_tests]
passenv = TRAVIS TRAVIS_*
commands = nosetests holoviews.tests --with-doctest --with-coverage --cover-package=holoviews

[_regression]
description = Run regression tests
deps = .[nbtests]
commands = python ./test_notebooks.py
commands = pytest panel --cov=./panel

[_examples]
description = Test that default examples run
Expand All @@ -45,14 +39,12 @@ changedir = {envtmpdir}
commands = examples-pkg: {[_pkg]commands}
unit: {[_unit]commands}
flakes: {[_flakes]commands}
regression: {[_regression]commands}
examples: {[_examples]commands}
all_recommended: {[_all_recommended]commands}

deps = unit: {[_unit]deps}
flakes: {[_flakes]deps}
all_recommended: {[_all_recommended]deps}
regression: {[_regression]deps}

[flake8]
include = *.py
Expand Down

0 comments on commit bed9c02

Please sign in to comment.