Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Aug 14, 2024
1 parent c2ba13e commit f06f231
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
14 changes: 0 additions & 14 deletions src/iosanita/contenttypes/events/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,6 @@
},
],
},
"Venue": {
"content": [
{
"id": "multimedia",
"title": "Multimedia",
"type": "Folder",
"allowed_types": (
"Image",
"Link",
),
"publish": True,
}
],
},
"News Item": {
"content": [
{
Expand Down
25 changes: 20 additions & 5 deletions src/iosanita/contenttypes/indexers/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,26 @@
factory=".events.rassegna"
name="rassegna"
/>
<adapter factory=".common.street" name="street" />
<adapter factory=".common.zip_code" name="zip_code" />
<adapter factory=".common.city" name="city" />
<adapter factory=".common.province" name="province" />
<adapter factory=".common.geolocation" name="geolocation" />
<adapter
factory=".common.street"
name="street"
/>
<adapter
factory=".common.zip_code"
name="zip_code"
/>
<adapter
factory=".common.city"
name="city"
/>
<adapter
factory=".common.province"
name="province"
/>
<adapter
factory=".common.geolocation"
name="geolocation"
/>

<!-- relations -->
<adapter
Expand Down
6 changes: 4 additions & 2 deletions src/iosanita/contenttypes/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
from redturtle.volto.testing import RedturtleVoltoLayer
from zope.configuration import xmlconfig

import collective.address
import collective.geolocationbehavior
import collective.taxonomy
import collective.venue
import collective.volto.blocksfield
import collective.volto.cookieconsent
import collective.z3cform.datagridfield
Expand All @@ -23,12 +24,13 @@ class TestLayer(RedturtleVoltoLayer):
def setUpZope(self, app, configurationContext):
super().setUpZope(app, configurationContext)
self.loadZCML(package=collective.taxonomy)
self.loadZCML(package=collective.venue)
self.loadZCML(package=collective.volto.blocksfield)
self.loadZCML(package=collective.z3cform.datagridfield)
self.loadZCML(package=kitconcept.seo)
self.loadZCML(package=plone.formwidget.geolocation)
self.loadZCML(package=collective.geolocationbehavior)
self.loadZCML(package=redturtle.bandi)
self.loadZCML(package=collective.address)
self.loadZCML(package=iosanita.contenttypes, context=configurationContext)
xmlconfig.file(
"configure.zcml",
Expand Down

0 comments on commit f06f231

Please sign in to comment.