MCPcopy Create free account
hub / github.com/pytest-dev/pytest / consider_preparse

Method consider_preparse

src/_pytest/config/__init__.py:649–671  ·  view source on GitHub ↗

:meta private:

(
        self, args: Sequence[str], *, exclude_only: bool = False
    )

Source from the content-addressed store, hash-verified

647 #
648
649 def consider_preparse(
650 self, args: Sequence[str], *, exclude_only: bool = False
651 ) -> None:
652 """:meta private:"""
653 i = 0
654 n = len(args)
655 while i < n:
656 opt = args[i]
657 i += 1
658 if isinstance(opt, str):
659 if opt == "-p":
660 try:
661 parg = args[i]
662 except IndexError:
663 return
664 i += 1
665 elif opt.startswith("-p"):
666 parg = opt[2:]
667 else:
668 continue
669 if exclude_only and not parg.startswith("no:"):
670 continue
671 self.consider_pluginarg(parg)
672
673 def consider_pluginarg(self, arg: str) -> None:
674 """:meta private:"""

Calls 1

consider_pluginargMethod · 0.95