Skip to content

Commit 28f9cd5

Browse files
committed
short additional test
1 parent 3255afc commit 28f9cd5

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ docs = [
6969
testing = [
7070
"setuptools",
7171
"pytest",
72-
"pytest-cov"
72+
"pytest-cov",
73+
"riverine[echo]"
7374
]
7475
echo = [
7576
"kithairon >= 0.2.0",
@@ -97,6 +98,7 @@ ignore_missing_imports = true
9798
dependencies = [
9899
"pytest",
99100
"pytest-cov",
101+
"riverine[echo]",
100102
]
101103

102104
[tool.hatch.envs.hatch-test.overrides]

tests/test_echo.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,30 @@ def test_echo_experiment():
2727
exp.add(m)
2828

2929
p = exp.generate_picklist()
30+
31+
def test_echo_fixed_volume():
32+
pytest.importorskip('kithairon')
33+
from riverine import EchoFixedVolume
34+
35+
# We'll make some components:
36+
c1 = Component("c1", "10 µM", plate="plate1", well="A1")
37+
c2 = Component("c2", "10 µM", plate="plate1", well="A2")
38+
c3 = Component("c3", "5 µM", plate="plate1", well="A3")
39+
c4 = Component("c4", "5 µM", plate="plate2", well="B3")
40+
41+
m = Mix(
42+
[
43+
EchoFixedVolume([c1, c2, c3, c4], "1 uL")
44+
],
45+
"testmix", plate="destplate", well="A1"
46+
)
47+
48+
mstr = str(m)
49+
50+
exp = Experiment()
51+
exp.add(m)
52+
53+
p = exp.generate_picklist()
54+
55+
# All transfer volumes should be 1000
56+
assert all(p.data["Transfer Volume"] == 1000)

0 commit comments

Comments
 (0)