From d12067752e9e3260671d0347e6142a7ec4c1a3e3 Mon Sep 17 00:00:00 2001 From: OlteanuRares Date: Thu, 8 Aug 2024 16:16:04 +0300 Subject: [PATCH] update changelog, bump version to 2.2.12.dev3 and remove dash from docker-compose --- docs/changelog.rst | 2 +- run_tests.sh | 2 +- setup.py | 2 +- tests/test_scc.py | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index aee762d4..e2e02305 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -3,7 +3,7 @@ Changelog 2.2.12 ^^^^^^ - Mid-row codes only add spaces only if there isn't one before and it -- Mid-row codes only add spaces only if the previous command ois not break +- Mid-row codes only add spaces only if the previous command is not break - Remove spaces to the end of the lines - CaptionLineLengthError is now raised if the cursor goes after column 32 instead of string length over 32 - Close italics on receiving another style setting command. diff --git a/run_tests.sh b/run_tests.sh index 94d71883..71abf561 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,5 +1,5 @@ #!/bin/bash -DOCKER_CMD="docker-compose -p pycaption" +DOCKER_CMD="docker compose -p pycaption" SERVICE="test_py312" diff --git a/setup.py b/setup.py index 759fefe0..4e88a480 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ setup( name='pycaption', - version='2.2.12.dev2', + version='2.2.12.dev3', description='Closed caption converter', long_description=open(README_PATH).read(), author='Joe Norton', diff --git a/tests/test_scc.py b/tests/test_scc.py index c982be7e..53263ba0 100644 --- a/tests/test_scc.py +++ b/tests/test_scc.py @@ -607,7 +607,7 @@ def check_cursor_placement(node_creator): node_creator.add_chars("aaa ") node_creator.interpret_command("91ae") node_creator.add_chars("bbb") - # 15 + 4 + 3 = 23 + # 15 + 4 + 3 = 22 assert node_creator._cursor_position == 22 # break again node_creator.interpret_command("9254") # row 03, column 08 @@ -922,8 +922,6 @@ def test_ensure_final_italics_node_closes(self): assert new_collection[-1].sets_italics_off() - - class CaptionDummy: """Mock for pycaption.base.Caption"""