Skip to content

Commit

Permalink
minor bugfix: shortened --source_with_tests flag in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Aug 21, 2023
1 parent a4123a0 commit 94ea658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbgrader/tests/apps/test_nbgrader_generate_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ def test_autotests_hashed(self, course_dir, temp_cwd):
assert "HASHED" not in foo

def test_generate_source_with_tests_flag(self, course_dir, temp_cwd):
"""Does setting the flag --generate_source_with_tests also create a notebook with solution and tests in the
"""Does setting the flag --source_with_tests also create a notebook with solution and tests in the
source_with_tests directory"""
self._copy_file(join("files", "autotest-simple.ipynb"), join(course_dir, "source", "ps1", "foo.ipynb"))
self._copy_file(join("files", "tests.yml"), join(course_dir, "source", "ps1", "tests.yml"))
run_nbgrader(["db", "assignment", "add", "ps1"])
run_nbgrader(["generate_assignment", "ps1", "--generate_source_with_tests"])
run_nbgrader(["generate_assignment", "ps1", "--source_with_tests"])
assert os.path.isfile(join(course_dir, "release", "ps1", "foo.ipynb"))
assert os.path.isfile(join(course_dir, "source_with_tests", "ps1", "foo.ipynb"))

Expand Down

0 comments on commit 94ea658

Please sign in to comment.