Skip to content

Commit

Permalink
Correct the spelling of Config.ArgsSource.INVOCATION_DIR
Browse files Browse the repository at this point in the history
Config.ArgsSource.INCOVATION_DIR remains as a backwards compatibility
alias.
  • Loading branch information
jparise committed Aug 22, 2023
1 parent 050f402 commit 3c55d53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/11333.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct the spelling of ``Config.ArgsSource.INVOCATION_DIR``.
5 changes: 3 additions & 2 deletions src/_pytest/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,8 @@ class ArgsSource(enum.Enum):
#: Command line arguments.
ARGS = enum.auto()
#: Invocation directory.
INCOVATION_DIR = enum.auto()
INVOCATION_DIR = enum.auto()
INCOVATION_DIR = INVOCATION_DIR # backwards compatibility alias
#: 'testpaths' configuration value.
TESTPATHS = enum.auto()

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

Expand Down

0 comments on commit 3c55d53

Please sign in to comment.