This repository was archived by the owner on Jun 7, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 223
Fix: Provide a more functional, usable fill-in-the-blank question. #412
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9897157
Fix: Provide a more functional, usable fill-in-the-blank question.
bjones1 73881f8
Fix: Proivde a definition for |blank|.
bjones1 c65678c
Clean: Remove unused references to casei.
bjones1 6ccdfa8
Fix: Add |blank| definition to test conf.py files.
bjones1 59339e8
Fix, following Brad's edits in e639d9b083a553552557c7d5f8e277ddd3afaed0.
bjones1 2895866
Fix: Copy children of original div, not div itself.
bjones1 63bf26e
Refactor: Place common test code in a single location.
bjones1 07d0e51
Fix: Update and refactor fitb tests.
bjones1 c0b4106
Fix: use Python 2.7 syntax, instead of Python 3.
bjones1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,2 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -e | ||
| testhome=`pwd` | ||
| port=8081 | ||
| for t in 'activecode' 'assess' 'clickableArea' 'dragndrop' 'fitb' 'poll' 'question' 'reveal' 'shortanswer' 'tabbedStuff'; do | ||
| cd runestone/$t/test | ||
| runestone build --all | ||
| runestone serve --port $port & | ||
| SERVE_PID=$! | ||
| echo "Running test_${t}.py" $port | ||
| set -x | ||
| python "test_${t}.py" | ||
| if [ $? -ne 0 ]; then | ||
| echo "Test failed" | ||
| pgrep -lf '.*runestone serve.*' | awk '{ print $1 }' | xargs kill | ||
| exit 1 | ||
| else | ||
| echo "killing server" $SERVE_PID | ||
| kill $SERVE_PID | ||
| fi | ||
| set -e | ||
| cd $testhome | ||
| #port=$((port+1)) | ||
| done | ||
|
|
||
| exit 0 | ||
| python -m unittest discover |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existing books will need to update their conf.py in order to get this. We'll need to do that for pip, thinkcspy, pythonds, etc.
Although if I understand this correctly an author is free to use :blank:
fooif they want.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's correct; any form of
:blank:`foo`(wherefoocan be anything) works. Would you like me to submit PRs for these books? Or would you prefer to edit them yourself?