Skip tests not working on Windows.

pull/1842/head
grossmj 4 years ago
parent c248764efb
commit e014d36ad2

@ -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)):

@ -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
@ -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()

Loading…
Cancel
Save