Skip to content

Commit

Permalink
Test cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
kbattocchi committed Jun 29, 2022
1 parent c9285a9 commit af280b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,14 @@ jobs:
- template: azure-pipelines-steps.yml
parameters:
package: '-e .[tf,plt]'
versions: ['3.6', '3.7', '3.8', '3.9']
job:
job: Tests_main
dependsOn: 'EvalChanges'
condition: eq(dependencies.EvalChanges.outputs['output.testCode'], 'True')
displayName: 'Run tests (main)'
steps:
- script: 'pip install pytest pytest-runner && python setup.py pytest'
- script: 'pip install pytest pytest-runner "coverage<6.4.1" && python setup.py pytest'
displayName: 'Unit tests'
env:
PYTEST_ADDOPTS: '-m "not (notebook or automl or dml or serial or cate_api)" -n 2'
Expand Down
5 changes: 5 additions & 0 deletions econml/tests/test_linear_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def setUpClass(cls):
cls.y_2D_consistent = np.concatenate((TestLassoExtensions.y_simple.reshape(-1, 1),
TestLassoExtensions.y2_full.reshape(-1, 1)), axis=1)

def test_can_clone(self):
for model in [WeightedLasso(), WeightedLassoCV(), WeightedMultiTaskLassoCV(),
WeightedLassoCVWrapper(), DebiasedLasso(), MultiOutputDebiasedLasso()]:
clone(model)

#################
# WeightedLasso #
#################
Expand Down

0 comments on commit af280b5

Please # to comment.