mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-20 05:05:14 +02:00
refactor: update authentication handling to use aiohttp.encode_basic_auth and adjust request options + fix other pytest warnings
This commit is contained in:
9 files changed
+50
-33
No files matched your search
@@ -120,7 +120,7 @@ async def write_file(path, z):
|
||||
@pytest.fixture
|
||||
def export_project_with_symlink(tmpdir, controller):
|
||||
async def _export(symlink_target):
|
||||
project = Project(controller=controller, name="test")
|
||||
project = Project(controller=controller, name="test", filename="project.gns3")
|
||||
project.dump = MagicMock()
|
||||
|
||||
topology = {
|
||||
@@ -148,6 +148,9 @@ def export_project_with_symlink(tmpdir, controller):
|
||||
await export_project(z, project, str(tmpdir), include_images=False)
|
||||
await write_file(zip_path, z)
|
||||
|
||||
with zipfile.ZipFile(zip_path) as archive:
|
||||
assert archive.namelist().count("project.gns3") == 1
|
||||
|
||||
return zip_path
|
||||
|
||||
return _export
|
||||
|
||||
Reference in new issue
Block a user