From 5ccb2c9304a3649423569c71e8b5d27413838358 Mon Sep 17 00:00:00 2001 From: s3lph Date: Wed, 20 Jun 2018 02:04:35 +0200 Subject: [PATCH] Fixed failing unit tests. --- matemat/webserver/test/test_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matemat/webserver/test/test_post.py b/matemat/webserver/test/test_post.py index 059d41b..ad99247 100644 --- a/matemat/webserver/test/test_post.py +++ b/matemat/webserver/test/test_post.py @@ -17,7 +17,7 @@ def post_test_pagelet(method: str, headers['Content-Type'] = 'text/plain' dump: str = '' for k, v in args.items(): - dump += f'{k}: {v if v is str else ",".join(v)}\n' + dump += f'{k}: {v if isinstance(v, str) else ",".join(v)}\n' return 200, dump