Skip to content

Commit

Permalink
Fail the tests for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Apr 19, 2024
1 parent 83b4329 commit ef18bc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/examples/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ def list_of_examples():
@pytest.mark.examples
def test_example_scripts(self, example):
runpy.run_path(example)
# fail the tests for debugging
assert False
2 changes: 2 additions & 0 deletions tests/integration/test_model_experiment_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def test_changing_model(self, parameter):
# The datasets are not corrupted so the costs should be zero
np.testing.assert_almost_equal(cost_1, 0)
np.testing.assert_almost_equal(cost_2, 0)
# fail the test for debugging
assert False

def final_cost(self, solution, model, parameters, init_soc):
# Compute the cost corresponding to a particular solution
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ def test_energy_density_costs(
assert cost([0.8]) == np.inf # Should exceed active material + porosity < 1
assert cost([1.4]) == np.inf # Definitely not viable
assert cost([-0.1]) == np.inf # Should not be a viable design
# fail the tests for debugging
assert False

# Test infeasible locations
cost.problem._model.allow_infeasible_solutions = False
Expand Down

0 comments on commit ef18bc4

Please sign in to comment.