1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 14:48:49 +00:00
Carl Smedstad 59500dd5ba
Make tests compatibly with pytest v8.x
The test test_get_valid_history_without_current fails when using pytest
v8.x in the following manner:

    AssertionError: assert ['ls cat', 'diff x'] == ['ls cat', 'diff x', 'café ô']
    AssertionError: assert ['ls cat'] == ['ls cat', 'café ô']
    AssertionError: assert ['ls cat', 'diff x'] == ['ls cat', 'diff x', 'café ô']
    AssertionError: assert ['ls cat', 'diff x'] == ['ls cat', 'diff x', 'café ô']

The issue stems from the function thefuck/utils.py:get_all_executables()
and seems to be related to the memoization decorator used.

Disable memoization the failing tests with the fixture 'no_meomize' to
resolve the issue.
2024-09-28 18:05:12 +02:00
..
2015-04-25 03:13:57 +02:00
2020-11-03 18:29:28 +01:00
2017-08-26 06:16:51 +02:00