4 ms·
In PyCharm: Move cursor on any occurence or definition of "database" fixture, press the "Rename" hotkey (Shift+F6), delete old name and type new name, press Ent
by morningsam 2y ago
In PyCharm: Move cursor on any occurence or definition of "database" fixture, press the "Rename" hotkey (Shift+F6), delete old name and type new name, press Enter key to confirm.
- 1-more 2y agoWouldn’t that be limited to the single function?
- morningsam 2y agoA single fixture, yes. If there are many fixtures of the same name in different test modules, it wouldn't work, but that's not how I understood the problem in the blog post, which says >rename every instance of a pytest fixture from database -> db Every instance of a fixture, not every instance of all fixtures of the same name.