File: xdist.py

package info (click to toggle)
python-pytest-random-order 1.1.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: python: 704; makefile: 12; sh: 6
file content (8 lines) | stat: -rw-r--r-- 210 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
import pytest


class XdistHooks:

    def pytest_configure_node(self, node: pytest.Item) -> None:
        seed = node.config.getoption('random_order_seed')
        node.workerinput['random_order_seed'] = seed