File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 21
21
process_media ,
22
22
sort_unread_topics ,
23
23
)
24
+ from zulipterminal .platform_code import PLATFORM
24
25
25
26
26
27
MODULE = "zulipterminal.helper"
@@ -539,6 +540,9 @@ def test_download_media(
539
540
) = media_path
540
541
controller = mocker .Mock ()
541
542
543
+ if PLATFORM == "WSL" :
544
+ media_path = media_path .replace ("/" , "\\ " )
545
+
542
546
assert media_path == download_media (controller , url , callback )
543
547
544
548
@@ -604,14 +608,14 @@ def test_process_media_empty_url(
604
608
@pytest .mark .parametrize (
605
609
"returncode, error" ,
606
610
[
607
- (0 , []),
611
+ (1 if PLATFORM == "WSL" else 0 , []),
608
612
(
609
- 1 ,
613
+ 0 if PLATFORM == "WSL" else 1 ,
610
614
[
611
615
" The tool " ,
612
616
("footer_contrast" , "xdg-open" ),
613
617
" did not run successfully" ". Exited with " ,
614
- ("footer_contrast" , "1" ),
618
+ ("footer_contrast" , "0" if PLATFORM == "WSL" else " 1" ),
615
619
],
616
620
),
617
621
],
You can’t perform that action at this time.
0 commit comments