mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
All tests pass on windows
This commit is contained in:
6 files changed
+19
-9
No files matched your search
@@ -16,6 +16,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import os
|
||||
import sys
|
||||
import urllib.parse
|
||||
|
||||
from gns3server.config import Config
|
||||
@@ -34,7 +35,11 @@ def test_symbols(http_controller):
|
||||
def test_get(http_controller):
|
||||
response = http_controller.get('/symbols/' + urllib.parse.quote(':/symbols/firewall.svg') + '/raw')
|
||||
assert response.status == 200
|
||||
assert response.headers['CONTENT-LENGTH'] == '9381'
|
||||
# Different carriage return
|
||||
if sys.platform.startswith("win"):
|
||||
assert response.headers['CONTENT-LENGTH'] == '9568'
|
||||
else:
|
||||
assert response.headers['CONTENT-LENGTH'] == '9381'
|
||||
assert response.headers['CONTENT-TYPE'] == 'image/svg+xml'
|
||||
assert '</svg>' in response.html
|
||||
|
||||
|
||||
Reference in new issue
Block a user