Created new unittest model.
Separete unittest for module.
Only run unittest for compiled modules.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
471486732b
commit
ab918abc1e
211 changed files with 241 additions and 79 deletions
|
|
@ -1,33 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import unittest
|
||||
|
||||
from PySide.QtGui import QWidget, QVBoxLayout, QPushButton, QApplication, QHBoxLayout
|
||||
from helper import UsesQApplication
|
||||
|
||||
class QWidgetTest(UsesQApplication):
|
||||
|
||||
def test_setLayout(self):
|
||||
layout = QVBoxLayout()
|
||||
btn1 = QPushButton("button_v1")
|
||||
layout.addWidget(btn1)
|
||||
|
||||
btn2 = QPushButton("button_v2")
|
||||
layout.addWidget(btn2)
|
||||
|
||||
layout2 = QHBoxLayout()
|
||||
|
||||
btn1 = QPushButton("button_h1")
|
||||
layout2.addWidget(btn1)
|
||||
|
||||
btn2 = QPushButton("button_h2")
|
||||
layout2.addWidget(btn2)
|
||||
|
||||
layout.addLayout(layout2)
|
||||
|
||||
widget = QWidget()
|
||||
widget.setLayout(layout)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue