Skip to content

Commit

Permalink
Skip tests not working on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Oct 6, 2020
1 parent c248764 commit e014d36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/handlers/api/compute/test_qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ async def test_images(compute_api, fake_qemu_vm):
assert response.json == [{"filename": "linux载.img", "path": "linux载.img", "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1}]


@pytest.mark.skipif(sys.platform.startswith("win"), reason="Does not work on Windows")
async def test_upload_image(compute_api, tmpdir):

with patch("gns3server.compute.Qemu.get_images_directory", return_value=str(tmpdir)):
Expand Down
3 changes: 2 additions & 1 deletion tests/handlers/api/controller/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.


import sys
import pytest

from unittest.mock import MagicMock
Expand Down Expand Up @@ -242,6 +242,7 @@ async def test_post_file(controller_api, project, node, compute):
assert response.status == 404


@pytest.mark.skipif(sys.platform.startswith("win"), reason="Does not work on Windows")
async def test_get_and_post_with_nested_paths_normalization(controller_api, project, node, compute):

response = MagicMock()
Expand Down

0 comments on commit e014d36

Please sign in to comment.