Skip to content

Commit

Permalink
Add test-packages/ExampleCamelCase
Browse files Browse the repository at this point in the history
I wondered if this would need to be handled as `examplecamelcase`, so all lowercase.
But it seems to work fine with camel case.
  • Loading branch information
mauritsvanrees committed Feb 8, 2022
1 parent a9dfdd2 commit 30a4ad7
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ develop =
../../test-packages/example.zopeaddon
../../test-packages/example.zopeintegration
../../test-packages/example.multipleeps
../../test-packages/ExampleCamelCase
../../test-packages/namespaceexample.native
../../test-packages/namespaceexample.pkgutilns
parts =
Expand Down Expand Up @@ -42,5 +43,6 @@ eggs =
example.zopeaddon
example.zopeintegration
example.multipleeps
ExampleCamelCase
namespaceexample.native
namespaceexample.pkgutilns
2 changes: 2 additions & 0 deletions test-packages/ExampleCamelCase/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recursive-include src *.py
recursive-include src *.zcml
25 changes: 25 additions & 0 deletions test-packages/ExampleCamelCase/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup


setup(
name="ExampleCamelCase",
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"]),
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 @@
#
10 changes: 10 additions & 0 deletions test-packages/ExampleCamelCase/src/ExampleCamelCase/configure.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<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="ExampleCamelCase">

<!-- FOR TESTS: This is configure.zcml from ExampleCamelCase. -->

</configure>
11 changes: 11 additions & 0 deletions test-packages/ExampleCamelCase/src/ExampleCamelCase/tests.py
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 = "ExampleCamelCase"
meta_files = []
configure_files = ["configure.zcml"]
overrides_files = []
standard_z3c_autoinclude = True
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class TestIntegration(IntegrationTestCase, unittest.TestCase):
}
configure_files = {
"example.ploneintegration": ["configure.zcml"],
"ExampleCamelCase": ["configure.zcml"],
"example.plone_dash_addon": [
"configure.zcml",
"permissions.zcml",
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ deps =
-e test-packages/example.zopeaddon
-e test-packages/example.zopeintegration
-e test-packages/example.multipleeps
-e test-packages/ExampleCamelCase
-e test-packages/namespaceexample.native
-e test-packages/namespaceexample.pkgutilns
# extras =
Expand Down

0 comments on commit 30a4ad7

Please sign in to comment.