mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
Update documentation
This commit is contained in:
1 parent
d9f1a7c7d3
commit
c3c971921d
75 files changed
+295
-241
No files matched your search
@@ -18,6 +18,7 @@
|
||||
|
||||
import aiohttp
|
||||
import asyncio
|
||||
import pytest
|
||||
import os
|
||||
import tarfile
|
||||
from unittest.mock import patch
|
||||
@@ -26,6 +27,13 @@ from unittest.mock import patch
|
||||
from gns3server.config import Config
|
||||
|
||||
|
||||
@pytest.yield_fixture(autouse=True)
|
||||
def restore_working_dir():
|
||||
directory = os.getcwd()
|
||||
yield
|
||||
os.chdir(directory)
|
||||
|
||||
|
||||
def test_index_upload(server, tmpdir):
|
||||
|
||||
Config.instance().set("Server", "images_path", str(tmpdir))
|
||||
|
||||
Reference in new issue
Block a user