Closed fghaas closed 5 years ago
Merging #27 into master will increase coverage by
16.56%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #27 +/- ##
===========================================
+ Coverage 68.65% 85.21% +16.56%
===========================================
Files 5 6 +1
Lines 252 284 +32
===========================================
+ Hits 173 242 +69
+ Misses 79 42 -37
Impacted Files | Coverage Δ | |
---|---|---|
olxutils/templates.py | 100% <ø> (+59.09%) |
:arrow_up: |
tests/test_full_course.py | 100% <100%> (ø) |
|
olxutils/helpers.py | 72.97% <0%> (+2.7%) |
:arrow_up: |
olxutils/cli.py | 60.49% <0%> (+12.34%) |
:arrow_up: |
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 d3594de...f490776. Read the comment docs.
@fghaas, I don't remember seeing this particular issue before, but my first guess is that in the test run, the paths of the template lookup directories relative to os.getcwd() are wrong. Possibly for the simple reason the current directory is not set to the root directory of the course. I would suggest a manual os.chdir() to the root of the course in the test definition.
@arbrandes, this is the bit where I need your help. I want to add a test here for doing a full
olx-new-run
.In other words, this breaks:
But I can do this, immediately after:
This leaves me a bit baffled. I would totally expect weird issues with unicode strings in a 2.7 environment — but I would expect them in any 2.7 environment. I wouldn't expect things to be fine when the CLI is being invoked from the command line, and broken when run from the unit test.
I'm somewhat hoping you may have seen this before, and could suggest a fix.