Skip to content

Commit

Permalink
fail test to see existing log
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Aug 31, 2023
1 parent abb35d0 commit 45ca48e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nbgrader/tests/preprocessors/test_instantiatetests.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def test_warning_autotest_nongrade(self, preprocessor, caplog):
}

nb, resources = preprocessor.preprocess(nb, resources)
assert False, caplog.text
assert "AutoTest region detected in a non-grade cell; " in caplog.text

# test that an error is thrown when we have an AUTOTEST directive in a non-grade cell
Expand Down

0 comments on commit 45ca48e

Please sign in to comment.