Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /randovania_randovania /test /games /common /test_dotnet.py
| import pytest | |
| from randovania.games.common.dotnet import DotnetNotSetupException, is_dotnet_set_up | |
| def test_dotnet_missing(mocker): | |
| mocker.patch("subprocess.run", side_effect=FileNotFoundError) | |
| with pytest.raises(DotnetNotSetupException): | |
| is_dotnet_set_up() | |
| def test_dotnet_on_error(mocker): | |
| dotnet_process = mocker.patch("subprocess.run") | |
| dotnet_process.return_value.returncode = 1 | |
| with pytest.raises(DotnetNotSetupException): | |
| is_dotnet_set_up() | |
| def test_dotnet_runs_fine(mocker): | |
| dotnet_process = mocker.patch("subprocess.run") | |
| dotnet_process.return_value.returncode = 0 | |
| is_dotnet_set_up() | |
Xet Storage Details
- Size:
- 650 Bytes
- Xet hash:
- 15b21cda91923de33dd5e7ca434558a5d77c64329d5bcb8e25db70609b4316cf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.