Skip to content

Commit

Permalink
Use mix of Stream subclasses and Stream.define to make sure both work
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Aug 27, 2020
1 parent 1e0aeb6 commit 711f082
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions holoviews/tests/core/testdecollation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ class XY(Stream):
y = param.Number(constant=True)


class Z(Stream):
z = param.Number(constant=True)
Z = Stream.define("Z", z=0.0)


class PX(Stream):
px = param.Integer(constant=True)
PX = Stream.define("PX", px=1)


class TestDecollation(ComparisonTestCase):
Expand Down
3 changes: 1 addition & 2 deletions holoviews/tests/teststreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,7 @@ def transform_function(cls, stream_values, constants):
return dict(v=v + constants['base'])


class Val(Stream):
v = param.Number(constant=True)
Val = Stream.define("Val", v=0.0)


class TestDerivedStream(ComparisonTestCase):
Expand Down

0 comments on commit 711f082

Please sign in to comment.