Skip to content

[Bug]: 运行test目录下的脚本会报错 #1259

@l2002924700

Description

@l2002924700

Bug Description

执行pytest tests/client/test_lifecycle.py -v,会报以下错误:
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --cov=openviking --cov-report=term-missing
inifile: /home/amsr/linchao/openviking/OpenViking/pyproject.toml
rootdir: /home/amsr/linchao/openviking/OpenViking

Steps to Reproduce

按照https://github.com/volcengine/OpenViking/tree/main/tests给出的流程执行:

  • export OPENVIKING_CONFIG_FILE="/path/to/ov.conf"
  • pip install pytest pytest-asyncio
  • pytest tests/client/test_lifecycle.py -v

Expected Behavior

期待可以执行得到结果

Actual Behavior

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --cov=openviking --cov-report=term-missing
inifile: /home/amsr/linchao/openviking/OpenViking/pyproject.toml

Minimal Reproducible Example

Error Logs

OpenViking Version

0.3.3

Python Version

3.12

Operating System

Linux

Model Backend

None

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions