refactor: update authentication handling to use aiohttp.encode_basic_auth and adjust request options + fix other pytest warnings

This commit is contained in:
grossmj committed 2026-10-31 22:00:21 +07:00
1 parent 1608a65a01
commit ac65698eea
9 files changed
+50 -33

No files matched your search

+4 -1
View File
@@ -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