| 100 | } |
| 101 | |
| 102 | Py::Object UnitTestDialogPy::setUnitTest(const Py::Tuple& args) |
| 103 | { |
| 104 | char* pstr = nullptr; |
| 105 | if (!PyArg_ParseTuple(args.ptr(), "s", &pstr)) { |
| 106 | throw Py::Exception(); |
| 107 | } |
| 108 | |
| 109 | UnitTestDialog::instance()->setUnitTest(QString::fromLatin1(pstr)); |
| 110 | return Py::None(); |
| 111 | } |
| 112 | |
| 113 | Py::Object UnitTestDialogPy::getUnitTest(const Py::Tuple& args) |
| 114 | { |