We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45391c3 commit 09741f1Copy full SHA for 09741f1
tests/testing_tests/test_estimators.py
@@ -510,3 +510,15 @@ def test_get_formulae(self):
510
self.assertEqual(outcome, "Y")
511
self.assertEqual(treatment, "X")
512
self.assertEqual(covariates, ["Z"])
513
+
514
+ def test_multiple_lhs_terms(self):
515
+ regression_estimator = self.regression_estimator
516
+ regression_estimator.formula = "Y + Z ~ X"
517
+ with self.assertRaises(ValueError):
518
+ self.regression_estimator.get_terms_from_formula()
519
520
+ def test_no_treatment_variable_in_formula(self):
521
522
+ regression_estimator.formula = "Y ~ A + Z"
523
524
0 commit comments