Skip to content

Bug: tests/integration/test_web_tools.py is named like a pytest module but collects zero tests #13287

@NewTurn2017

Description

@NewTurn2017

Summary

tests/integration/test_web_tools.py is marked as an integration test module and named like a pytest file, but it defines no collectable pytest tests.

As a result, pytest runs nothing from this file, so web-tools integration coverage is effectively absent in the pytest workflow.

Affected file

  • tests/integration/test_web_tools.py

Why this is a bug

The file looks like part of the test suite, but its checks only run through the manual main() script path. This creates a false sense of coverage.

Reproduction

cd /Users/genie/.hermes/hermes-agent
source venv/bin/activate
pytest -q -m integration -o addopts='' tests/integration/test_web_tools.py

Observed output:

no tests ran in 0.26s

The file is pytest-marked at the top:

  • tests/integration/test_web_tools.py:18-19

But it contains helper classes/methods and a script-style runner rather than collectable test_* functions/classes.

Expected behavior

If this file lives under tests/integration/test_*.py, pytest should collect and execute real tests from it.

Actual behavior

Pytest collects nothing from the module.

Suggested investigation direction

Either convert the script into real pytest tests, or move/rename it so it no longer appears to be part of the active pytest suite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havetool/webWeb search and extractiontype/testTest coverage or test infrastructure

    Type

    No type
    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