Skip to content

Commit

Permalink
add example.plone-dash-addon tst
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTango committed Feb 8, 2022
1 parent 41015d8 commit 1738f5c
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-packages/example.plone-dash-addon/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recursive-include src *.py
recursive-include src *.zcml
26 changes: 26 additions & 0 deletions test-packages/example.plone-dash-addon/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup


setup(
name="example.plone-dash-addon",
version="1.0a1",
description="An add-on for Plone",
long_description="long_description",
author="Maurits van Rees",
author_email="m.van.rees@zestsoftware.nl",
license="GPL version 2",
packages=find_packages("src", exclude=["ez_setup"]),
namespace_packages=["example"],
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
install_requires=[
"setuptools",
],
entry_points="""
[z3c.autoinclude.plugin]
target = plone
""",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
__import__("pkg_resources").declare_namespace(__name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser">

</configure>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:plone="http://namespaces.plone.org/plone"
i18n_domain="example.ploneaddon">

<!--
Be careful if you use general includeDependencies, it can have side effects!
Better import explicit packages or configurations ;)
-->
<!--<includeDependencies package="." />-->

<include package=".browser" />

<include file="permissions.zcml" />

<!-- FOR TESTS: This is configure.zcml from example.plone-dash-addon. -->

</configure>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<configure
xmlns="http://namespaces.zope.org/zope">

</configure>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from example.basetestpackage.package_base import PackageTestCase

import unittest


class TestPackage(PackageTestCase, unittest.TestCase):
project_name = "example.plone-dash-addon"
meta_files = []
configure_files = ["configure.zcml", "permissions.zcml", "browser/configure.zcml"]
overrides_files = []
standard_z3c_autoinclude = True

0 comments on commit 1738f5c

Please sign in to comment.