camelot-project / frontend

The frontend: The web-facing server software for CAMELOT
BSD 3-Clause "New" or "Revised" License
2 stars 14 forks source link

Command-line test of the online user interface #113

Closed keflavich closed 9 years ago

keflavich commented 9 years ago

This can be run from the command line to save the tedious effort of entering everything. It requires the BenoitCommerçon file because I haven't implemented this for anything else yet, but applying it to other files ought to be straightforward.

BEWARE: this generates Issue/PR spam each time it is used successfully!

keflavich commented 9 years ago

A useful snippet for this:

S,r1,r2,r3 = test_upload_file()
with open('temp.html', 'w') as f:
    f.write(r3.content)

webbrowser.open('file://{pwd}/temp.html'.format(pwd=os.getcwd()))