Skip to content

fix(pytest): remove stray custom_section causing warning #26

Closed

Description

@tooniez

Summary

Remove stray [custom_section] in pytest.ini that causes PytestConfigWarning on every test run

Description

The pytest.ini file contains a stray [custom_section] with a value = test entry that is not recognized by pytest. This causes a PytestConfigWarning on every test run: "Unknown config option: value". While the tests still pass, this warning clutters the output and should be fixed by removing the unrecognized section.

Steps to Reproduce

  1. Run any pytest command (e.g., pytest or make test)
  2. Observe the warning in the output:
    PytestConfigWarning: Unknown config option: value
    

Expected Behavior

No configuration warnings should appear when running tests.

Actual Behavior

A PytestConfigWarning is displayed for every test run due to an unrecognized configuration option.

Additional Context

The problematic lines in pytest.ini are:

[custom_section]
value = test

Removing these lines will eliminate the warning without affecting test functionality, as the [custom_section] is not used by any part of the project.

This is a cleanup task that improves the developer experience by reducing noise in test output.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions