Skip to content

Commit

Permalink
Feature/black (#40)
Browse files Browse the repository at this point in the history
* linted tmle_core

* enhanced mediation tests
  • Loading branch information
ronikobrosly authored Apr 25, 2021
1 parent eb0e826 commit bb9dab9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/unit/test_mediation.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ def test_mediation_fit(mediation_fixture):
(0, 0.01, 0.99, 10, 10, 3, 5, 0.5, 100, None, True),
(1e6, 0.01, 0.99, 10, 10, 3, 5, 0.5, 100, None, True),
(10, "hehe", 0.99, 10, 10, 3, 5, 0.5, 100, None, True),
(10, -1, 0.99, 10, 10, 3, 5, 0.5, 100, None, True),
(10, -1.0, 0.99, 10, 10, 3, 5, 0.5, 100, None, True),
(10, 1.5, 0.99, 10, 10, 3, 5, 0.5, 100, None, True),
(10, 0.1, "hehe", 10, 10, 3, 5, 0.5, 100, None, True),
(10, 0.1, -1, 10, 10, 3, 5, 0.5, 100, None, True),
(10, 0.1, -1.0, 10, 10, 3, 5, 0.5, 100, None, True),
(10, 0.1, 1.5, 10, 10, 3, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 10.5, 10, 3, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, -2, 10, 3, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 1e6, 10, 3, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 10000000, 10, 3, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 100, "10", 3, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 100, -1, 3, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 100, 1e6, 3, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 100, 10000000, 3, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 100, 200, "3", 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 100, 200, 1, 5, 0.5, 100, None, True),
(10, 0.1, 0.9, 100, 200, 1e6, 5, 0.5, 100, None, True),
Expand All @@ -77,6 +77,7 @@ def test_mediation_fit(mediation_fixture):
(10, 0.1, 0.9, 100, 200, 5, 10, 1, 100, "None", True),
(10, 0.1, 0.9, 100, 200, 5, 10, 1, 100, -5, True),
(10, 0.1, 0.9, 100, 200, 5, 10, 1, 100, 123, "True"),
(10, 30.0, 10.0, 100, 200, 5, 10, 1, 100, None, True),
],
)
def test_bad_mediation_instantiation(
Expand Down

0 comments on commit bb9dab9

Please sign in to comment.