summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-09-16 14:10:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-09-16 14:10:52 +0000
commitdd16f3f0e8c43a53c847cada3a6762fa3bc6f3e5 (patch)
tree5206eca8bd60016feeda38ba7a1fb8f21cdc23f5 /tests
parentReleasing debian version 3.1.0-5. (diff)
downloadterminaltables-dd16f3f0e8c43a53c847cada3a6762fa3bc6f3e5.tar.xz
terminaltables-dd16f3f0e8c43a53c847cada3a6762fa3bc6f3e5.zip
Merging upstream version 3.1.10 (Closes: #1014035).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_all_tables_e2e/test_ascii_table.py2
-rw-r--r--tests/test_all_tables_e2e/test_double_table.py2
-rw-r--r--tests/test_all_tables_e2e/test_single_table_windows.py2
-rw-r--r--tests/test_terminal_io/sub_title_ascii_win2012b.bmpbin0 -> 4142 bytes
-rw-r--r--tests/test_terminal_io/sub_title_cjk_win2012b.bmpbin0 -> 9258 bytes
-rw-r--r--tests/test_terminal_io/test_set_terminal_title.py6
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_all_tables_e2e/test_ascii_table.py b/tests/test_all_tables_e2e/test_ascii_table.py
index 51ebc2a..a1a3b9c 100644
--- a/tests/test_all_tables_e2e/test_ascii_table.py
+++ b/tests/test_all_tables_e2e/test_ascii_table.py
@@ -100,7 +100,7 @@ def test_multi_line():
@pytest.mark.skipif(str(not IS_WINDOWS))
-@pytest.mark.skipif('True') # https://github.com/Robpol86/terminaltables/issues/30
+@pytest.mark.skip # https://github.com/Robpol86/terminaltables/issues/44
def test_windows_screenshot(tmpdir):
"""Test on Windows in a new console window. Take a screenshot to verify it works.
diff --git a/tests/test_all_tables_e2e/test_double_table.py b/tests/test_all_tables_e2e/test_double_table.py
index 892357a..beec764 100644
--- a/tests/test_all_tables_e2e/test_double_table.py
+++ b/tests/test_all_tables_e2e/test_double_table.py
@@ -200,7 +200,7 @@ def test_multi_line():
@pytest.mark.skipif(str(not IS_WINDOWS))
-@pytest.mark.skipif('True') # https://github.com/Robpol86/terminaltables/issues/30
+@pytest.mark.skip # https://github.com/Robpol86/terminaltables/issues/44
def test_windows_screenshot(tmpdir):
"""Test on Windows in a new console window. Take a screenshot to verify it works.
diff --git a/tests/test_all_tables_e2e/test_single_table_windows.py b/tests/test_all_tables_e2e/test_single_table_windows.py
index a15fa3a..bfdfe2e 100644
--- a/tests/test_all_tables_e2e/test_single_table_windows.py
+++ b/tests/test_all_tables_e2e/test_single_table_windows.py
@@ -201,7 +201,7 @@ def test_multi_line():
@pytest.mark.skipif(str(not IS_WINDOWS))
-@pytest.mark.skipif('True') # https://github.com/Robpol86/terminaltables/issues/30
+@pytest.mark.skip # https://github.com/Robpol86/terminaltables/issues/44
def test_windows_screenshot(tmpdir):
"""Test on Windows in a new console window. Take a screenshot to verify it works.
diff --git a/tests/test_terminal_io/sub_title_ascii_win2012b.bmp b/tests/test_terminal_io/sub_title_ascii_win2012b.bmp
new file mode 100644
index 0000000..5c7a484
--- /dev/null
+++ b/tests/test_terminal_io/sub_title_ascii_win2012b.bmp
Binary files differ
diff --git a/tests/test_terminal_io/sub_title_cjk_win2012b.bmp b/tests/test_terminal_io/sub_title_cjk_win2012b.bmp
new file mode 100644
index 0000000..0606a82
--- /dev/null
+++ b/tests/test_terminal_io/sub_title_cjk_win2012b.bmp
Binary files differ
diff --git a/tests/test_terminal_io/test_set_terminal_title.py b/tests/test_terminal_io/test_set_terminal_title.py
index 6d58301..38980be 100644
--- a/tests/test_terminal_io/test_set_terminal_title.py
+++ b/tests/test_terminal_io/test_set_terminal_title.py
@@ -15,7 +15,7 @@ from tests.test_terminal_io import MockKernel32
HERE = py.path.local(__file__).dirpath()
-
+@pytest.mark.skip("Fails on windows, I didn't touch it")
@pytest.mark.parametrize('is_windows', [False, True])
@pytest.mark.parametrize('mode', ['ascii', 'unicode', 'bytes'])
def test(monkeypatch, is_windows, mode):
@@ -54,8 +54,8 @@ def test(monkeypatch, is_windows, mode):
@pytest.mark.skipif(str(not IS_WINDOWS))
-@pytest.mark.skipif('True') # https://github.com/Robpol86/terminaltables/issues/30
@pytest.mark.parametrize('mode', ['ascii', 'unicode', 'bytes'])
+@pytest.mark.skip # https://github.com/Robpol86/terminaltables/issues/44
def test_windows_screenshot(tmpdir, mode):
"""Test function on Windows in a new console window. Take a screenshot to verify it works.
@@ -65,7 +65,7 @@ def test_windows_screenshot(tmpdir, mode):
script = tmpdir.join('script.py')
command = [sys.executable, str(script)]
change_title = tmpdir.join('change_title')
- screenshot = PROJECT_ROOT.join('test_terminal_io.png')
+ screenshot = PROJECT_ROOT.join('test_terminal_io_{0}.png'.format(mode))
if screenshot.check():
screenshot.remove()