smarie / python-pytest-harvest

Store data created during your `pytest` tests execution, and retrieve it at the end of the session, e.g. for applicative benchmarking purposes.
https://smarie.github.io/python-pytest-harvest/
BSD 3-Clause "New" or "Revised" License
61 stars 8 forks source link

`module_results_dct` fixture does not properly handle test ids where `::` is present in the id #45

Closed smarie closed 3 years ago

smarie commented 3 years ago
import pytest

@pytest.mark.parametrize("a", [0], ids=["a::0"])
def test_a(a):
    pass

def test_synthesis(module_results_dct):
    assert list(module_results_dct) == ['test_a[a::0]']  # <-- fails