15
0
Files
python-asciimatics/python-asciimatics-no-mock.patch
Matej Cepl cc3c17b0cb Accepting request 959930 from home:pgajdos:python
- version update to 1.13.0
  1.13.0
  ------
  - Added ability to change a `Button`'s text through a `.text` attribute.
  - Added ability to accept a name attribute in the `Button` and `Label` constructors.
  - Added ability to detect job pause/resume and force full screen refresh.
  - Added ability to request terminal default colours using `Screen.COLOUR_DEFAULT`.
  - Converted widgets to a sub-package.
  - Fixed issue with labels in a layout column preventing buttons from being pressed.
  - Fixed issue with visual overrun on Listboxes when there is a label offset.
  - Fixed issue with TextBox hitting IndexError in double buffers due to lack of clipping.
  - Fixed issue with Text/TextBox start columns on reset.
  - Added troubleshooting on terminal colour handling.
  1.12.0
  ------
  - Added ColouredText objects to handle embedded colour codes in text for some widgets.
  - Added parsers to handle Asciimatics and Ansi Terminal escape sequences.
  - Added ControlCodeParser to create human readable text from raw text with control codes in it.
  - Added readonly logic for Text and TextBox.
  - Added ability to enable/disable widgets by column in layouts.
  - Added left/right/up/down navigation to nearest widget.
  - Added ability to scroll screen/canvas by variable number of lines.
  - Created terminal demo
  - Fixed exception on reinstating NoneType signal handler.
  - Fixed float/int issue with recent builds of pywin32.
  - Fixed issue where setting options changed the selected value (even if it was still present).
  - Fixed erroneous trigger of on_load for all Frames at start of day.
  - Fixed bug where Frames passed on events that they already handled.
  - Fixed bug: Restore current theme on screen resize.
  - Fixed bug in scrolling the screen up.

OBS-URL: https://build.opensuse.org/request/show/959930
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asciimatics?expand=0&rev=12
2022-03-07 22:35:36 +00:00

57 lines
2.4 KiB
Diff

Index: asciimatics-1.13.0/tests/test_effects.py
===================================================================
--- asciimatics-1.13.0.orig/tests/test_effects.py 2020-09-18 16:37:11.000000000 +0200
+++ asciimatics-1.13.0/tests/test_effects.py 2022-03-07 13:53:31.271205331 +0100
@@ -1,7 +1,7 @@
from builtins import chr
import unittest
from datetime import datetime
-from mock.mock import MagicMock, patch
+from unittest.mock import MagicMock, patch
from random import randint
import os
import sys
Index: asciimatics-1.13.0/tests/test_particles.py
===================================================================
--- asciimatics-1.13.0.orig/tests/test_particles.py 2020-09-18 16:37:11.000000000 +0200
+++ asciimatics-1.13.0/tests/test_particles.py 2022-03-07 13:54:14.599457606 +0100
@@ -1,5 +1,5 @@
import unittest
-from mock.mock import MagicMock
+from unittest.mock import MagicMock
from asciimatics.particles import ShootScreen, DropScreen, Explosion, Rain, \
StarFirework, PalmFirework, RingFirework, SerpentFirework
from asciimatics.screen import Screen, Canvas
Index: asciimatics-1.13.0/tests/test_screen.py
===================================================================
--- asciimatics-1.13.0.orig/tests/test_screen.py 2021-03-06 18:11:13.000000000 +0100
+++ asciimatics-1.13.0/tests/test_screen.py 2022-03-07 13:54:48.895656238 +0100
@@ -5,7 +5,7 @@ from __future__ import print_function
from __future__ import unicode_literals
import os
-from mock import MagicMock
+from unittest.mock import MagicMock
from random import randint
import unittest
import sys
Index: asciimatics-1.13.0/tests/test_widgets.py
===================================================================
--- asciimatics-1.13.0.orig/tests/test_widgets.py 2021-04-05 16:20:35.000000000 +0200
+++ asciimatics-1.13.0/tests/test_widgets.py 2022-03-07 13:58:16.396856253 +0100
@@ -5,13 +5,12 @@ from __future__ import print_function
from __future__ import unicode_literals
from datetime import date, time
from time import sleep
-from mock import patch
+from unittest.mock import MagicMock,patch
from builtins import ord
from builtins import chr
from builtins import str
import unittest
import sys
-from mock.mock import MagicMock
from asciimatics.event import KeyboardEvent, MouseEvent
from asciimatics.exceptions import NextScene, StopApplication, InvalidFields
from asciimatics.scene import Scene