Permalink
Browse files

Python 3 testing.

  • Loading branch information...
1 parent 6072581 commit a6d8944152cd38a7b0290147a6b8644e21e72558 @miohtama miohtama committed Nov 19, 2016
Showing with 33 additions and 9 deletions.
  1. +2 −0 .travis.yml
  2. +8 −0 CHANGES.txt
  3. +8 −3 CONTRIBUTING.md → CONTRIBUTING.rst
  4. +5 −5 messages.pot
  5. +10 −1 tox.ini
View
@@ -23,6 +23,8 @@ matrix:
env: TOXENV=docs
- python: 2.7
env: TOXENV=functional
+ - python: 3.5
+ env: TOXENV=functional3
# - python: pypy3
# env: TOXENV=pypy3
View
@@ -11,6 +11,14 @@
- Updated pickdate.js library used for the date picker: https://github.com/Pylons/deform/pull/248
+- Functional test suite runnable under Python 3
+
+- Lots of Selenium testing headache fixed with some implicit wait support
+
+.. note ::
+
+ Currently Python 3 file upload widget may have compatibility issues Please see deformdemo/test.py for details.
+
2.0.2 (2016-11-14)
------------------
@@ -64,14 +64,19 @@ for OSX:
* Copy ``Firefox-45.app`` to ``Applications``
-* Prepare your test run ``export
- FIREFOX_PATH=/Applications/Firefox-45.app/Contents/MacOS/firefox``
+* Prepare your test run::
+
+ export FIREFOX_PATH=/Applications/Firefox-45.app/Contents/MacOS/firefox
.. note ::
- As the writing of this Marionette geckodriver for Firefox is incomplete and cannot
+ Selenium 3: As the writing of this Marionette geckodriver for Firefox is incomplete and cannot
run all the tests.
+.. note ::
+
+ Chrome: Tests do not run correctly on Chrome due to various timing issues. Some effort was put forth to fix this, but it's never ending swamp.
+
Running test suite
~~~~~~~~~~~~~~~~~~
View
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2016-11-14 12:17+0200\n"
+"POT-Creation-Date: 2016-11-19 13:28+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -26,7 +26,7 @@ msgstr ""
msgid "${value} has no ${key} key"
msgstr ""
-#: ./deform/widget.py:718 ./deform/widget.py:1795
+#: ./deform/widget.py:718 ./deform/widget.py:1800
msgid "Incomplete date"
msgstr ""
@@ -50,7 +50,7 @@ msgstr ""
msgid "Password did not match confirm"
msgstr ""
-#: ./deform/widget.py:1480
+#: ./deform/widget.py:1485
#, python-format
msgid "Add ${subitem_title}"
msgstr ""
@@ -91,7 +91,7 @@ msgstr ""
msgid "Errors have been highlighted below"
msgstr ""
-#: ./deform/templates/mapping.pt:13
+#: ./deform/templates/mapping.pt:13 ./deform/templates/mapping_accordion.pt:29
msgid "There was a problem with this section"
msgstr ""
@@ -120,7 +120,7 @@ msgstr ""
msgid "Password not displayed."
msgstr ""
-#: ./deform/tests/test_widget.py:1738
+#: ./deform/tests/test_widget.py:1752
#, python-format
msgid "Yo ${subitem_title}"
msgstr ""
View
@@ -3,7 +3,7 @@ envlist =
py27,py33,py34,py35,pypy,pypy3,
docs,
{py2,py3}-cover,coverage,
- functional
+ functional, functional3
[testenv]
# Most of these are defaults but if you specify any you can't fall back
@@ -75,3 +75,12 @@ commands =
pip install deform[testing,functional]
./run-selenium-tests.bash {posargs}
+
+[testenv:functional3]
+# Allow override test browser
+passenv = WEBDRIVER DISPLAY FIREFOX_PATH
+basepython = python3.5
+commands =
+ pip install deform[testing,functional]
+ ./run-selenium-tests.bash {posargs}
+

0 comments on commit a6d8944

Please sign in to comment.