nithinmurali / pygsheets

Google Sheets Python API v4
https://pygsheets.readthedocs.io/en/latest
Other
1.51k stars 220 forks source link

fix flaky tests/online_test.py::TestCell::test_link #516

Closed shenganzhang closed 2 years ago

shenganzhang commented 2 years ago

This PR aims to fix the flaky test tests/online_test.py::TestCell::test_link. In previous versions, the test will run into failure when running for multiple times. And the reason is that the parameters self.cell.row, self.cell.col didn't get reset. The test failure can be reproduced by pip install pytest-flakefinder pytest --flake-finder --flake-runs=2 tests/online_test.py::TestCell Notice that the PR is modifying the test to make it more robust without changing the source code.