falconry / falcon

The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
https://falcon.readthedocs.io/en/stable/
Apache License 2.0
9.51k stars 937 forks source link

chore(testing): allow test to be run using pytest-xdist #2172

Closed CaselIT closed 11 months ago

CaselIT commented 1 year ago

Trying to run pytest .\tests\ -n 6 --dist=worksteal on master it results in an error since different test are collected. This is mostly because we parametrize the test on random uuid, that result in the test signature to be different.

This fixes that by creating a deterministic id for the parametrized test where needed

codecov[bot] commented 1 year ago

Codecov Report

Merging #2172 (311a4be) into master (32207fe) will not change coverage. The diff coverage is n/a.

@@            Coverage Diff            @@
##            master     #2172   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           62        62           
  Lines         6869      6869           
  Branches      1098      1098           
=========================================
  Hits          6869      6869           
CaselIT commented 11 months ago

Added a note there, can you take a second look?