datacamp / pythonwhat

Verify Python code submissions and auto-generate meaningful feedback messages.
http://pythonwhat.readthedocs.io/
GNU Affero General Public License v3.0
69 stars 31 forks source link

Run code from Python files #381

Closed hermansje closed 5 years ago

hermansje commented 5 years ago

Executing Python files on the file system opens up a lot more SCT capabilities. Function chain to use this: check_file().run().has_equal_value() There are some tests showing how it can be used.

codecov[bot] commented 5 years ago

Codecov Report

Merging #381 into master will decrease coverage by 0.52%. The diff coverage is 90.6%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #381      +/-   ##
==========================================
- Coverage    94.6%   94.08%   -0.53%     
==========================================
  Files          26       26              
  Lines        1984     2097     +113     
==========================================
+ Hits         1877     1973      +96     
- Misses        107      124      +17
Impacted Files Coverage Δ
pythonwhat/checks/has_funcs.py 96.17% <100%> (ø) :arrow_up:
pythonwhat/checks/check_wrappers.py 100% <100%> (ø) :arrow_up:
pythonwhat/State.py 93.42% <100%> (-1.14%) :arrow_down:
pythonwhat/sct_syntax.py 100% <100%> (ø) :arrow_up:
pythonwhat/test_exercise.py 97.5% <100%> (+0.53%) :arrow_up:
pythonwhat/checks/check_object.py 100% <100%> (ø) :arrow_up:
pythonwhat/local.py 89.28% <88.8%> (-10.72%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1140abb...9f6935e. Read the comment docs.