From 6ca5facf8972a83a1fd3bc078a549337acdc0236 Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Sun, 19 Jun 2022 18:02:41 +0100 Subject: [PATCH] Fix CI (#422) * Fix CI * Fix test --- src/pathpicker/screen_control.py | 2 +- src/tests/expected/xModeWithSelect.txt | 40 +++++++++++++------------- src/tests/test_screen.py | 2 +- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/pathpicker/screen_control.py b/src/pathpicker/screen_control.py index 62b2fd06..9b362e6d 100644 --- a/src/pathpicker/screen_control.py +++ b/src/pathpicker/screen_control.py @@ -35,7 +35,7 @@ def signal_handler(_sig: int, _frame: FrameType) -> None: X_MODE = "X_MODE" # characters for quick select mode label(excluded reserved chars: A,F) -LABELS = "BCDEGHIJKLMNOPQRSTUVWXYZ1234567890~!@#$%^&*()_+<>?{}|;'" +LABELS = "BCDEGHIJKLMNOPQRSTUVWXYZ1234567890~!@#$%^&*()_+<>?{}|;'" # options for displayed to the user at the bottom of the screen diff --git a/src/tests/expected/xModeWithSelect.txt b/src/tests/expected/xModeWithSelect.txt index e62cead8..b13737d3 100644 --- a/src/tests/expected/xModeWithSelect.txt +++ b/src/tests/expected/xModeWithSelect.txt @@ -1,36 +1,32 @@ -A README.md | 8 ++++- +B README.md | 8 ++++- ********* -B fpp | 6 ++-- +C fpp | 6 ++-- -C src/__tests__/__init__.py | 0 +D src/__tests__/__init__.py | 0 _________________________ -D src/__tests__/cursesForTest.py | 45 ++++++++++++++++++++++++++++ +E src/__tests__/cursesForTest.py | 45 ++++++++++++++++++++++++++++ ______________________________ -E |===>src/__tests__/initTest.py | 28 ++++++++++++++++++ +G |===>src/__tests__/initTest.py | 28 ++++++++++++++++++ |||||||||||||||||||||||||||||| -F src/__tests__/screenForTest.py | 67 ++++++++++++++++++++++++++++++++++++++ +H src/__tests__/screenForTest.py | 67 ++++++++++++++++++++++++++++++++++++++ ______________________________ -G src/charCodeMapping.py | 20 +++++++++++++ +I src/charCodeMapping.py | 20 +++++++++++++ ______________________ -H |===>src/choose.py | 15 ++++++++-- +J |===>src/choose.py | 15 ++++++++-- |||||||||||||||||| -I src/colorPrinter.py | 21 ++++++++----- +K src/colorPrinter.py | 21 ++++++++----- ___________________ -J src/cursesAPI.py | 40 +++++++++++++++++++++++++ +L src/cursesAPI.py | 40 +++++++++++++++++++++++++ ________________ -K src/format.py | 4 +-- +M src/format.py | 4 +-- _____________ -L src/processInput.py | 7 +++++ +N src/processInput.py | 7 +++++ ___________________ -M src/screenControl.py | 28 +++++++----------- +O src/screenControl.py | 28 +++++++----------- ____________________ -N src/screenFlags.py | 34 +++++++++++++++++++++ +P src/screenFlags.py | 34 +++++++++++++++++++++ __________________ -O 14 files changed, 290 insertions(+), 33 deletions(-) - -P - -Q +Q 14 files changed, 290 insertions(+), 33 deletions(-) R @@ -54,7 +50,11 @@ Z 2 -3___________________________________________________________________________ +3 + +4 + +5___________________________________________________________________________ [f|A] selection, [down|j|up|k|space|b] navigation, [enter] open, [x] quick \ No newline at end of file diff --git a/src/tests/test_screen.py b/src/tests/test_screen.py index 178b4075..42ef8866 100644 --- a/src/tests/test_screen.py +++ b/src/tests/test_screen.py @@ -147,7 +147,7 @@ def __init__( "xModeWithSelect", input_file="gitDiff.txt", with_attributes=True, - inputs=["x", "E", "H"], + inputs=["x", "G", "J"], ), ScreenTestCase( "gitAbbreviatedFiles",