Skip to content

Commit

Permalink
Correct the spelling of ArgSource.INVOCATION_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
jparise committed Aug 22, 2023
1 parent 050f402 commit 5914826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_pytest/config/__init__.py
Expand Up @@ -953,7 +953,7 @@ class ArgsSource(enum.Enum):
#: Command line arguments.
ARGS = enum.auto()
#: Invocation directory.
INCOVATION_DIR = enum.auto()
INVOCATION_DIR = enum.auto()
#: 'testpaths' configuration value.
TESTPATHS = enum.auto()

Expand Down Expand Up @@ -1278,7 +1278,7 @@ def _decide_args(
else:
result = []
if not result:
source = Config.ArgsSource.INCOVATION_DIR
source = Config.ArgsSource.INVOCATION_DIR

Check warning on line 1281 in src/_pytest/config/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/_pytest/config/__init__.py#L1281

Added line #L1281 was not covered by tests
result = [str(invocation_dir)]
return result, source

Expand Down

0 comments on commit 5914826

Please sign in to comment.