Ghost.py
Ghost.py copied to clipboard
Not able to upload file
It seems to me that Ghost.py is not able to upload the file. The code bellow does not work:
g.set_field_value('input[name=cert_file]', '/tmp/a')
page, resources = g.call('form','submit', expect_loading=True)
This issue is connected to #202. I cant confirm that all the tests are OK but the set_field_value_simple_file_field.
.
======================================================================
FAIL: test_set_field_value_simple_file_field (__main__.GhostTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./run.py", line 369, in test_set_field_value_simple_file_field
self.assertTrue(os.path.isfile(file_path))
AssertionError: False is not true
----------------------------------------------------------------------
Ran 52 tests in 25.718s
FAILED (failures=1)
Environment:
In [11]: ghost.__version__
Out[11]: '0.1.1'
In [12]: PySide.__version__
Out[12]: '1.2.1'