Opened 5 years ago

Closed 5 years ago

#16191 closed enhancement (implemented)

Read python scripts from docs/_static/example directory for tutorial tests

Reported by: sambuddhabasu Owned by: atagar
Priority: Medium Milestone:
Component: Archived/Stem Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Currently, there are tutorials under the docs/_static/example directory. There same code snippets are duplicated in the test/unit/ file. The tests should read the python script from the docs/_static/example directory. This reduces code redundancy.

Child Tickets

Attachments (1)

0001-Read-python-scripts-from-docs-_static-example-direct.patch (13.5 KB) - added by sambuddhabasu 5 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 5 years ago by sambuddhabasu

Most of the tutorial tests now read the python code from docs/_static/example directory. The other tests are a bit modified from the original ones and hence have not been replaced. I have also attached the changes in code.

comment:2 Changed 5 years ago by atagar

Resolution: implemented
Status: newclosed

Great work! Pushed with some revisions so this works under python3 too.

Note: See TracTickets for help on using tickets.