1
0
Fork 0
mirror of synced 2024-05-15 01:32:47 +12:00

Add skip statement for broken test on windows

This commit is contained in:
Serene-Arc 2021-11-24 11:07:52 +10:00
parent 8925643331
commit 4a86482756

View file

@ -2,6 +2,7 @@
# coding=utf-8
import platform
import sys
import unittest.mock
from datetime import datetime
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()
@pytest.mark.skipif(sys.platform == 'win32', reason='Test broken on windows github')
def test_shorten_filename_real(submission: MagicMock, tmp_path: Path):
submission.title = 'A' * 500
submission.author.name = 'test'