Skip to content

Commit 76941ca

Browse files
authored
BS5 integration (#129)
* crack on the tests. * More test fixing, for required/invlide * using the right fork for deform * removed custom profile that circumvent problem in ubuntu * Fixing tests. Mostly required stuff, due to the html5 validation * Introduced a novalidate way to check for deform behavior when submitted with wrong data. Moved all html5-required tests to dedicated methods. Reintroduced all previously removed tests for direct submission without html5 validation * Fixed tests. Only 1 remaining. * Added scroll to tinymce delay test to bring it into view * scroll after switching to iframe * fixing tinymce preload * Fixed test * MoneyInput is never empty. Hence the html5 test failed. * back to using pylons/main * Updated python versions * Do not test missing message on the MoneyInput. It's required and never empty. * fixed forgotten #egg in requirement file * fixed formatting * Fixed var assignation never tested * Fixed tox... * blacked.
1 parent ca6e28e commit 76941ca

6 files changed

Lines changed: 360 additions & 95 deletions

File tree

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
strategy:
1616
matrix:
1717
py:
18-
- "3.8"
19-
- "3.9"
2018
- "3.10"
2119
- "3.11"
2220
- "3.12"
21+
- "3.13"
2322
- "pypy-3.10"
2423
os:
2524
- "ubuntu-latest"

deformdemo/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

3-
""" A Pyramid app that demonstrates various Deform widgets and
4-
capabilities and which provides a functional test suite """
3+
"""A Pyramid app that demonstrates various Deform widgets and
4+
capabilities and which provides a functional test suite"""
55

66
import csv
77
import decimal
@@ -1664,7 +1664,9 @@ class Schema(colander.Schema):
16641664
colander.String(),
16651665
title=unicode("По оживлённым берегам", "utf-8"),
16661666
description=unicode(
1667-
"子曰:「學而時習之,不亦說乎?有朋自遠方來,不亦樂乎? " "人不知而不慍,不亦君子乎?」", "utf-8"
1667+
"子曰:「學而時習之,不亦說乎?有朋自遠方來,不亦樂乎? "
1668+
"人不知而不慍,不亦君子乎?」",
1669+
"utf-8",
16681670
),
16691671
default=unicode("☃", "utf-8"),
16701672
)

deformdemo/mini.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Self-contained Deform demo example."""
2+
23
from __future__ import print_function
34

45
import colander

0 commit comments

Comments
 (0)