11import subprocess
22
33import pytest
4- from .conftest import GIT2CPP_TEST_WASM
54
65
76def test_rebase_basic (xtl_clone , commit_env_config , git2cpp_path , tmp_path ):
@@ -346,9 +345,7 @@ def test_rebase_no_upstream_error(xtl_clone, commit_env_config, git2cpp_path, tm
346345
347346 rebase_cmd = [git2cpp_path , "rebase" ]
348347 p_rebase = subprocess .run (rebase_cmd , capture_output = True , cwd = xtl_path , text = True )
349- if not GIT2CPP_TEST_WASM :
350- # TODO: fix this in wasm build
351- assert p_rebase .returncode != 0
348+ assert p_rebase .returncode != 0
352349 assert "upstream is required for rebase" in p_rebase .stderr
353350
354351
@@ -359,9 +356,7 @@ def test_rebase_invalid_upstream_error(xtl_clone, commit_env_config, git2cpp_pat
359356
360357 rebase_cmd = [git2cpp_path , "rebase" , "nonexistent-branch" ]
361358 p_rebase = subprocess .run (rebase_cmd , capture_output = True , cwd = xtl_path , text = True )
362- if not GIT2CPP_TEST_WASM :
363- # TODO: fix this in wasm build
364- assert p_rebase .returncode != 0
359+ assert p_rebase .returncode != 0
365360 assert "could not resolve upstream" in p_rebase .stderr or "could not resolve upstream" in p_rebase .stdout
366361
367362
@@ -390,9 +385,7 @@ def test_rebase_already_in_progress_error(xtl_clone, commit_env_config, git2cpp_
390385 # Try to start another rebase
391386 rebase_cmd = [git2cpp_path , "rebase" , "master" ]
392387 p_rebase = subprocess .run (rebase_cmd , capture_output = True , cwd = xtl_path , text = True )
393- if not GIT2CPP_TEST_WASM :
394- # TODO: fix this in wasm build
395- assert p_rebase .returncode != 0
388+ assert p_rebase .returncode != 0
396389 assert "rebase is already in progress" in p_rebase .stderr or "rebase is already in progress" in p_rebase .stdout
397390
398391
@@ -403,9 +396,7 @@ def test_rebase_continue_without_rebase_error(xtl_clone, commit_env_config, git2
403396
404397 continue_cmd = [git2cpp_path , "rebase" , "--continue" ]
405398 p_continue = subprocess .run (continue_cmd , capture_output = True , cwd = xtl_path , text = True )
406- if not GIT2CPP_TEST_WASM :
407- # TODO: fix this in wasm build
408- assert p_continue .returncode != 0
399+ assert p_continue .returncode != 0
409400 assert "No rebase in progress" in p_continue .stderr or "No rebase in progress" in p_continue .stdout
410401
411402
@@ -433,7 +424,5 @@ def test_rebase_continue_with_unresolved_conflicts(xtl_clone, commit_env_config,
433424 # Try to continue without resolving
434425 continue_cmd = [git2cpp_path , "rebase" , "--continue" ]
435426 p_continue = subprocess .run (continue_cmd , capture_output = True , cwd = xtl_path , text = True )
436- if not GIT2CPP_TEST_WASM :
437- # TODO: fix this in wasm build
438- assert p_continue .returncode != 0
427+ assert p_continue .returncode != 0
439428 assert "resolve conflicts" in p_continue .stderr or "resolve conflicts" in p_continue .stdout
0 commit comments