pull/30653/head
Shane Smiskol 2 years ago
parent 63115c0c1b
commit 2d2c305216
  1. 5
      conftest.py

@ -52,6 +52,11 @@ def pytest_collection_modifyitems(config, items):
@pytest.hookimpl(trylast=True) @pytest.hookimpl(trylast=True)
def pytest_configure(config): def pytest_configure(config):
if config.cache.get('worker/seed', None) is None:
config.cache.set('worker/seed', random.randint(0, 100000))
seed = config.cache.get('worker/seed', None)
random.seed(seed)
print('setting seed in configure', seed)
config_line = ( config_line = (
"xdist_group_class_property: group tests by a property of the class that contains them" "xdist_group_class_property: group tests by a property of the class that contains them"
) )

Loading…
Cancel
Save