Create a test with syrupy and update the snapshots
Run pytest test_file.py --flake-finder
See error
Expected behavior
Tests should pass.
Environment (please complete the following information):
OS: Any
Syrupy Version: [e.g. 1.0] Any
Python Version: [e.g. 3.9] Any
Additional context
Syrupy tracks each iteration of a test run by flake finder resulting in a bunch of indexing. A fix would be having a "global name" for the snapshot, one that doesn't rely on the test name (but does rely on the file)
You may be able to work around this by specifying a custom name rather than relying on the default auto-incremented execution id. See the example in the README: https://github.com/tophat/syrupy#name
Describe the bug
Can run pytests with flakefinder and syrupy.
To reproduce
Steps to reproduce the behavior:
pytest test_file.py --flake-finder
Expected behavior
Tests should pass.
Environment (please complete the following information):
Additional context
Syrupy tracks each iteration of a test run by flake finder resulting in a bunch of indexing. A fix would be having a "global name" for the snapshot, one that doesn't rely on the test name (but does rely on the file)