summaryrefslogtreecommitdiff
path: root/sw/qa/unoapi
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-04-18 23:17:30 +0200
committerMichael Stahl <mstahl@redhat.com>2013-04-19 00:30:13 +0200
commit5bdf9edc622b84319756ad45569ad7be1865cb4f (patch)
tree12f5901340f8a06f351998935cb2273a6cce0269 /sw/qa/unoapi
parent748f3ea41f59fd07494be7bf65446163e98fe2ce (diff)
sw: move Python tests out of qa/unoapi
Change-Id: I4f9655b1df27bec2a7571d43921f962d3a420bb5
Diffstat (limited to 'sw/qa/unoapi')
-rw-r--r--sw/qa/unoapi/python/get_expression.py53
-rw-r--r--sw/qa/unoapi/python/set_expression.py40
2 files changed, 0 insertions, 93 deletions
diff --git a/sw/qa/unoapi/python/get_expression.py b/sw/qa/unoapi/python/get_expression.py
deleted file mode 100644
index 5ac49f88fc34..000000000000
--- a/sw/qa/unoapi/python/get_expression.py
+++ /dev/null
@@ -1,53 +0,0 @@
-import unittest
-from org.libreoffice.unotest import UnoNotConnection as UnoConnection
-
-class TestGetExpression(unittest.TestCase):
- _unoCon = None
- _xDoc = None
-
- @classmethod
- def setUpClass(cls):
- cls._unoCon = UnoConnection({})
- cls._unoCon.setUp()
- cls._xDoc = cls._unoCon.openEmptyWriterDoc()
-
- @classmethod
- def tearDownClass(cls):
- cls._unoCon.tearDown()
-
- def test_get_expression(self):
- self.__class__._unoCon.checkProperties(
- self.__class__._xDoc.createInstance("com.sun.star.text.textfield.GetExpression"),
- {"Content": "foo",
- "CurrentPresentation": "bar",
- "NumberFormat": 0,
- "IsShowFormula": False,
- "SubType": 0,
- "VariableSubtype": 1,
- "IsFixedLanguage": False,
- },
- self
- )
-
- # property 'Value' is read only?
- @unittest.expectedFailure
- def test_get_expression_veto_read_only(self):
- self.__class__._unoCon.checkProperties(
- self.__class__._xDoc.createInstance("com.sun.star.text.textfield.GetExpression"),
- {"Value": 0.0},
- self
- )
-
- # property 'NumberingType' is unknown?
- @unittest.expectedFailure
- def test_get_expression_unknown_property(self):
- self.__class__._unoCon.checkProperties(
- self.__class__._xDoc.createInstance("com.sun.star.text.textfield.GetExpression"),
- {"NumberingType": 0},
- self
- )
-
-
-if __name__ == '__main__':
- unittest.main()
-
diff --git a/sw/qa/unoapi/python/set_expression.py b/sw/qa/unoapi/python/set_expression.py
deleted file mode 100644
index d88d2f384ef0..000000000000
--- a/sw/qa/unoapi/python/set_expression.py
+++ /dev/null
@@ -1,40 +0,0 @@
-import unittest
-from org.libreoffice.unotest import UnoNotConnection as UnoConnection
-
-#@unittest.skip("that seems to work")
-class TestSetExpresion(unittest.TestCase):
- _unoCon = None
- _xDoc = None
-
- @classmethod
- def setUpClass(cls):
- cls._unoCon = UnoConnection({})
- cls._unoCon.setUp()
- cls._xDoc = cls._unoCon.openEmptyWriterDoc()
-
- @classmethod
- def tearDownClass(cls):
- cls._unoCon.tearDown()
-
- def test_set_expression(self):
- self.__class__._unoCon.checkProperties(
- self.__class__._xDoc.createInstance("com.sun.star.text.textfield.SetExpression"),
- {"NumberingType": 0,
- "Content": "foo",
- "CurrentPresentation": "bar",
- "NumberFormat": 0,
- "NumberingType": 0,
- "IsShowFormula": False,
- "IsInput": False,
- "IsVisible": True,
- "SequenceValue": 0,
- "SubType": 0,
- "Value": 1.0,
- "IsFixedLanguage": False
- },
- self
- )
-
-if __name__ == '__main__':
- unittest.main()
-