Skip to content

Instantly share code, notes, and snippets.

@jugmac00
Created July 9, 2020 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jugmac00/f47375102e88382091b171b4637fbdfe to your computer and use it in GitHub Desktop.
Save jugmac00/f47375102e88382091b171b4637fbdfe to your computer and use it in GitHub Desktop.
Zope and pytest
import os
import os.path
import sys
import gocept.httpserverlayer.plonetestingzope as gc_httpserverlayer_zope
import gocept.selenium
import plone.testing.layer
import plone.testing.zodb
import plone.testing.zope as plone_testing_zope
import Products.MailHost.tests.testMailHost
import pytest
from AccessControl.SecurityManagement import noSecurityManager
from App.config import getConfiguration
@icemac
Copy link

icemac commented Jul 9, 2020

This is not the important part. The important one is https://github.com/gocept/gocept.pytestlayer. That package converts layers to fixtures.

@jugmac00
Copy link
Author

jugmac00 commented Jul 9, 2020

@jugmac00
Copy link
Author

jugmac00 commented Jul 9, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment