Test library failed to export after import - #8889
Conversation
There was a problem hiding this comment.
@adampalay @awais786 this is failing test
There was a problem hiding this comment.
why put this in a try/except?
There was a problem hiding this comment.
because we have to clean the temp directory if any Exception occurs
There was a problem hiding this comment.
i am using the same directory for export below so add the finally block L#468 for export_library_to_xml
There was a problem hiding this comment.
I don't know if it's a risk if the test fails and the extract_dir isn't cleared because we do a git clean before running the tests. If you want to be careful, wrap the whole test in a try/finally.
408c743 to
18b5900
Compare
|
@adampalay review it |
There was a problem hiding this comment.
you don't need a try/except here. If there's no error, then the test passes. If there is an error, the test will automatically not pass.
18b5900 to
b0093a7
Compare
There was a problem hiding this comment.
you don't need this line or L469
b0093a7 to
c3b0a3f
Compare
|
Once the XBlock change is merged to master, and this PR changes the xblock hash to XBlock master, 👍 |
6def1fb to
f62e32e
Compare
|
@adampalay review it. |
|
👍 |
|
@cpennington , @muzaffaryousaf review it. |
|
@doctoryes kindly review it . |
There was a problem hiding this comment.
Does this mean that advertised_start should be set to '' everywhere that it's currently set to None? A recent change added this line:
There was a problem hiding this comment.
yes and thanks for the catching this
f62e32e to
3dc14c8
Compare
|
👍 |
|
@Shrhawk , you need to merge https://github.com/edx/XBlock/pull/305 and then update the xblock hash here before you merge this PR |
3dc14c8 to
5aaed63
Compare
5aaed63 to
4c1c461
Compare
…n-import-error Test library failed to export after import
TNL-2686
Test for Xblock pr#305 where while setting xml attribute with
Nonevalue throwingTypeError, solve this by adding an inline check if value is ofNoneType return empty string to save xml attribute