oracle / oracle/oci-python-sdk

Conflict in argument option --config-file with pytest 7.4.0

Open
#565 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SDK
Dominant language
Python
Stars
474
Forks
321
Avg merge
23m
Merged PRs (30d)
4

Description

You have --config-file option in your conftest.py:

https://github.com/oracle/oci-python-sdk/blob/31f38df202ff3f449bb0dd64347b22b6e031c3c2/tests/conftest.py#L16

and pytest 7.4.0 now has it as well: https://github.com/pytest-dev/pytest/commit/4f3f36c396b52f8398bc4734ff0c00c57cf1fed1

which results in:

argparse.ArgumentError: argument --config-file: conflicting option string: --config-file

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in tests/conftest.py at line 16 and compare its --config-file option with pytest 7.4.0's built-in option. Reproduce the argparse conflict using the test setup, then verify that the test suite starts without the duplicate option error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.