Skip to content

Commit 478b8d6

Browse files
committed
refactor: build a FisherExactTest object for validating tests
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
1 parent 439514d commit 478b8d6

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

tests/unit/test_fisher_stats.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ def test_fisher_stats():
88
scenario_model = cobra.io.read_sbml_model("tests/inputs/naiveB_model.xml")
99
real = FisherExactTest.run(reference=reference_model, scenario=scenario_model, pathway="Glycolysis/gluconeogenesis")
1010

11-
assert real.statistic == np.float64(4.321708185053381)
12-
assert real.pvalue == np.float64(1.2883495211648955e-05)
13-
assert real.a == 32
14-
assert real.b == 10
15-
assert real.c == 4496
16-
assert real.d == 6072
11+
assert real == FisherExactTest(
12+
pathway="Glycolysis/gluconeogenesis",
13+
statistic=np.float64(4.321708185053381),
14+
pvalue=np.float64(1.2883495211648955e-05),
15+
a=32,
16+
b=10,
17+
c=4496,
18+
d=6072,
19+
)

0 commit comments

Comments
 (0)