Add skip statement for broken test on windows
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
|
import sys
|
||||||
import unittest.mock
|
import unittest.mock
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@@ -213,6 +214,7 @@ def test_preserve_id_append_when_shortening(test_filename: str, test_ending: str
|
|||||||
assert len(str(result)) <= FileNameFormatter.find_max_path_length()
|
assert len(str(result)) <= FileNameFormatter.find_max_path_length()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(sys.platform == 'win32', reason='Test broken on windows github')
|
||||||
def test_shorten_filename_real(submission: MagicMock, tmp_path: Path):
|
def test_shorten_filename_real(submission: MagicMock, tmp_path: Path):
|
||||||
submission.title = 'A' * 500
|
submission.title = 'A' * 500
|
||||||
submission.author.name = 'test'
|
submission.author.name = 'test'
|
||||||
|
|||||||
Reference in New Issue
Block a user