Skip to content

Commit

Permalink
minor ed
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Aug 23, 2023
1 parent 84fd66b commit e0dfe0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbgrader/tests/preprocessors/test_instantiatetests.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_warning_autotest_nongrade(self, preprocessor, caplog):
}

nb, resources = preprocessor.preprocess(nb, resources)
assert "Autotest region detected in a non-grade cell; " in 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
def test_error_autotest_nongrade(self, preprocessor, caplog):
Expand All @@ -92,7 +92,7 @@ def test_error_autotest_nongrade(self, preprocessor, caplog):
with pytest.raises(Exception):
nb, resources = preprocessor.preprocess(nb, resources)

assert "Autotest region detected in a non-grade cell; " in caplog.text
assert "AutoTest region detected in a non-grade cell; " in caplog.text

# test that invalid python statements in AUTOTEST directives cause errors
def test_error_bad_autotest_code(self, preprocessor):
Expand Down

0 comments on commit e0dfe0d

Please sign in to comment.