mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-18 22:38:07 +00:00
Skip tests not working on Windows.
This commit is contained in:
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…
Reference in New Issue
Block a user