Skip to content

Add a small test suite + minimal CI for the project's own Python helpers? #622

Description

@Valyrian-Code

While going through the repo I noticed the project's own host-side Python (notably create-envfile.py) has no tests, and there's a .flake8 config that isn't run by any workflow.

I'd like to propose, only if it fits how you want this template maintained:

  1. A small pytest suite for create-envfile.py covering its real branches — JSON-vs-CLI precedence, the https-requires-email guard, env_typedebug / letsencrypt_mode, and full {placeholder} substitution.
  2. A minimal GitHub Actions workflow that runs flake8 (using the existing .flake8) and those tests on push/PR.

Both would be small and kept separate (one concern per PR). Before writing anything: is a test + CI layer something you'd welcome here, or do you deliberately keep this repo's CI minimal since it tracks GeoNode master? Happy to follow whatever direction you prefer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions