Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refacture tests to not have so many manuel settings #501

Open
MrTango opened this issue May 3, 2022 · 0 comments
Open

Refacture tests to not have so many manuel settings #501

MrTango opened this issue May 3, 2022 · 0 comments

Comments

@MrTango
Copy link
Contributor

MrTango commented May 3, 2022

many tests use a Configurator object with manuel settings:

    configurator = Configurator(
        template="bobtemplates.plone:view",
        target_directory="collective.sample",
        bobconfig={"non_interactive": True},
        variables={
            "view_python_class": True,
            "view_python_class_name": "MyView",
            "view_python_file_name": "py_view",
            "view_register_for": "Folder",
            "view_name": "py-view",
            "view_template": True,
            "view_template_name": "pt_view",
            "package_folder": package_path,
            "package.dottedname": "collective.sample",
            "package.browserlayer": "CollectiveSampleLayer",
        },
    )

it would be better to either have the base settings defined once or use a mrbob.ini to load them in most tests.

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

No branches or pull requests

1 participant