File: xdist.py

package info (click to toggle)
python-pytest-random-order 1.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 288 kB
  • sloc: python: 760; makefile: 11; sh: 6
file content (7 lines) | stat: -rw-r--r-- 209 bytes parent folder | download
1
2
3
4
5
6
7
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