Commit 37ed0ffa authored by julian.gethmann's avatar julian.gethmann

Fix NamedTuple in test_pvs2pd

parent cf644b9e
......@@ -19,17 +19,22 @@ import cassandra
import pytest
from cassandra.pd import pvs2pd
setup = NamedTuple("setup", [
("start", datetime.datetime),
("end", datetime.datetime),
("pv_list", List[str]),
]
)
class TestCassandraPD(object):
@pytest.fixture()
def setup_pd(self) -> NamedTuple[("start", datetime.datetime), (
"end", datetime.datetime), ("pv_list", List[str])]:
def setup_pd(self) -> setup:
pv_list = ["nu_x", "nu_y"]
start = datetime.datetime(2016, 8, 5, 18, 28, 36)
end = datetime.datetime(2016, 8, 5, 18, 28,
36) + datetime.timedelta(seconds=15)
setup = namedtuple("setup", ["start", "end", "pv_list"])
# setup = namedtuple("setup", ["start", "end", "pv_list"])
return setup(start, end, pv_list)
@staticmethod
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment