Skip to content

Commit 920b6df

Browse files
committed
Made gha and tests run again
1 parent 87f1f11 commit 920b6df

File tree

3 files changed

+44
-5
lines changed

3 files changed

+44
-5
lines changed

CHANGES.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ Changelog
44
1.17.1 (unreleased)
55
-------------------
66

7-
- Nothing changed yet.
8-
7+
- Made gha and tests run again.
8+
[sgeulette]
99

1010
1.17.0 (2026-01-15)
1111
-------------------
1212

1313
- Removed 'to_sign' and 'signed' fields from scanbehavior.
1414
[chris-adam]
1515

16-
1716
1.16.4 (2025-06-24)
1817
-------------------
1918

src/collective/dms/mailcontent/testing.py

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# -*- coding: utf8 -*-
2-
2+
from plone import api
33
from plone.app.testing import applyProfile
44
from plone.app.testing import FunctionalTesting
55
from plone.app.testing import IntegrationTesting
66
from plone.app.testing import PLONE_FIXTURE
77
from plone.app.testing import PloneSandboxLayer
8+
from plone.app.testing import setRoles
9+
from plone.app.testing import TEST_USER_ID
10+
from plone.namedfile.file import NamedBlobImage
811
from zope.globalrequest.local import setLocal
912

1013
import collective.dms.mailcontent
14+
import collective.iconifiedcategory
15+
import os
1116

1217

1318
class MailcontentLayer(PloneSandboxLayer):
@@ -22,7 +27,37 @@ def setUpZope(self, app, configurationContext):
2227
def setUpPloneSite(self, portal):
2328
setLocal("request", portal.REQUEST) # to avoid error with empty request in P6
2429
applyProfile(portal, "collective.dms.mailcontent:testing")
25-
# setRoles(portal, TEST_USER_ID, ["Manager"])
30+
setRoles(portal, TEST_USER_ID, ["Manager"])
31+
at_folder = api.content.create(
32+
container=portal,
33+
id="annexes_types",
34+
title="Annexes Types",
35+
type="ContentCategoryConfiguration",
36+
exclude_from_nav=True,
37+
)
38+
category_group = api.content.create(
39+
type="ContentCategoryGroup",
40+
title="Annexes",
41+
container=at_folder,
42+
id="annexes",
43+
)
44+
icon_path = os.path.join(os.path.dirname(collective.iconifiedcategory.__file__), "tests", "icône1.png")
45+
with open(icon_path, "rb") as fl:
46+
api.content.create(
47+
type="ContentCategory",
48+
title="To sign",
49+
container=category_group,
50+
icon=NamedBlobImage(fl.read(), filename=u"icône1.png"),
51+
id="to_sign",
52+
predefined_title="To be signed",
53+
# confidential=True,
54+
# to_print=True,
55+
to_sign=True,
56+
# signed=True,
57+
# publishable=True,
58+
# only_pdf=True,
59+
show_preview=False,
60+
)
2661

2762

2863
COLLECTIVE_DMS_MAILCONTENT = MailcontentLayer()

versions.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ appy = 1.0.19
77
collective.dexteritytextindexer = 2.0.1
88
collective.documentviewer = 3.0.3
99
collective.js.chosen = 1.4
10+
collective.excelexport = 1.8.2
1011
collective.z3cform.chosen = 1.2.1
1112
collective.z3cform.datagridfield = 1.1
1213
coverage = 3.7.1
@@ -45,6 +46,10 @@ zc.lockfile = 1.4
4546
Products.DateRecurringIndex = 2.1
4647
collective.elephantvocabulary = 0.2.5
4748

49+
# Required by:
50+
# collective.eeafaceted.z3ctable , max version for Plone 4.3
51+
plone.formwidget.namedfile = 2.0.5
52+
4853
# Required by:
4954
# traitlets==4.0.0
5055
ipython-genutils = 0.1.0

0 commit comments

Comments
 (0)