Skip to content

environment table needs to be whitelisted/blacklisted #233

Closed
@fenchu

Description

@fenchu

when I use pytest-html in docker (with gitlab-ci) it needs a lot of environment variables set, some holds token and passwords. I do not want to show in my jenkins report to a wider audience.
pytest-html_envs

It seems they are collected in the very first test, so adding this to a test is working using the request autofixture:

        # remove eventual gitlab settings
        for k in list(request.config._metadata.keys()):
            if re.search(r'^(GITLAB_|CI_)', k):
                del request.config._metadata[k]

But I like to do it in conftest.py

Metadata

Metadata

Assignees

Labels

enhancementThis issue/PR relates to a feature request.featureThis issue/PR relates to a feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions