DoclerLabs / hexMachina

Releases, issues, documentation, website of hexMachina, framework written in Haxe
http://hexmachina.org
MIT License
44 stars 8 forks source link

hexUnit - test support python #276

Open aliokan opened 6 years ago

aliokan commented 6 years ago

missing constructor in hex.unittest.assertion.AssertionTest,

MacBook-Pro:bin ali_o_kan$ python MainTest.py
<<< Start hex.HexUnitSuite tests run >>>
  Suite class 'HexUnit suite'
    Suite class 'Assertion'
      Test class 'hex.unittest.assertion.AssertionTest'
Traceback (most recent call last):
  File "MainTest.py", line 4925, in <module>
    MainUnitTest.main()
  File "MainTest.py", line 259, in main
    emu.run()
  File "MainTest.py", line 3107, in run
    self._runNext()
  File "MainTest.py", line 3181, in _runNext
    self._runner.run()
  File "MainTest.py", line 3596, in run
    self._runClassDescriptor((None if ((_this1.head is None)) else _this1.head.elt))
  File "MainTest.py", line 3604, in _runClassDescriptor
    self._runSuiteClass(classDescriptor)
  File "MainTest.py", line 3620, in _runSuiteClass
    self._runClassDescriptor(classDescriptor)
  File "MainTest.py", line 3604, in _runClassDescriptor
    self._runSuiteClass(classDescriptor)
  File "MainTest.py", line 3620, in _runSuiteClass
    self._runClassDescriptor(classDescriptor)
  File "MainTest.py", line 3608, in _runClassDescriptor
    Reflect.setField(classDescriptor,"instance",(Reflect.field(classDescriptor,"instanceCall")() if ((Reflect.field(classDescriptor,"instanceCall") is not None)) else Type.createEmptyInstance(Reflect.field(classDescriptor,"type"))))
  File "MainTest.py", line 217, in _hx_local_59
    return Type.createEmptyInstance(hex_unittest_assertion_AssertionTest)
  File "MainTest.py", line 624, in createEmptyInstance
    i = cl.__new__(cl)
AttributeError: class hex_unittest_assertion_AssertionTest has no attribute '__new__'