Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Plone + pytest: Tips & Tricks

Plone + pytest: Tips & Tricks

Tips and tricks to use pytest with Plone.

Presented at the Plone Conference 2024, in Brasília, in November 29, 2024.

Érico Andrei

November 29, 2024
Tweet

More Decks by Érico Andrei

Other Decks in Technology

Transcript

  1. "Untested code is broken code" • First test: 2002-10-07 •

    unittest, unittest2 • Robot Framework, Selenium, Cypress Testing with Plone
  2. A taste acquired when coding modern Python code • Simple

    & "Pythonic" • Dependency injection • Large ecosystem of plugins • Support for unittest • Brazilian maintainer Ich ❤ pytest
  3. • Built on top of zope.pytest • Provides Fixtures and

    Helpers • Already the default implementation on • cookieplone-templates pytest-plone
  4. Growing adoption Distributions, new addons, old addons • plone.distribution •

    plone.exportimport • plonegovbr.intranet • pas.plugins.keycloak_groups • collective.mastodon • collective.bluesky • collective.blog • pas.plugins.oidc • kitconcept.solr • contentrules.slack • collective.contact_behaviors • collective.person • collective.casestudy • pas.plugins.memberpropertytogroup