mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
parent
e77445e860
commit
8ec11619cd
@ -54,7 +54,7 @@ class Symbols:
|
||||
'filename': file,
|
||||
'builtin': False,
|
||||
})
|
||||
self._symbols_path[symbol_id] = os.path.join(get_resource("symbols"), file)
|
||||
self._symbols_path[symbol_id] = os.path.join(directory, file)
|
||||
|
||||
symbols.sort(key=lambda x: x["filename"])
|
||||
|
||||
|
@ -68,5 +68,6 @@ class SymbolHandler:
|
||||
if not packet:
|
||||
break
|
||||
f.write(packet)
|
||||
# Reset the symbol list
|
||||
controller.symbols.list()
|
||||
response.set_status(204)
|
||||
|
||||
|
@ -49,4 +49,5 @@ def test_upload(http_controller, symbols_dir):
|
||||
with open(os.path.join(symbols_dir, "test2")) as f:
|
||||
assert f.read() == "TEST"
|
||||
|
||||
|
||||
response = http_controller.get('/symbols/test2/raw')
|
||||
assert response.status == 200
|
||||
|
Loading…
Reference in New Issue
Block a user