chiark / gitweb /
theme, plugins: make the tests working under Python 3.4.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Dec 2017 11:42:12 +0000 (12:42 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Dec 2017 13:47:56 +0000 (14:47 +0100)
pelican-plugins/m/test/__init__.py
pelican-theme/test/__init__.py

index 3cfe1bd691b15c82b33588183432cc8670d713cc..1f7089e9ec5e53b67acafcef3f00b6168cc38dd1 100644 (file)
@@ -41,7 +41,8 @@ class PluginTestCase(unittest.TestCase):
             'DIRECT_TEMPLATES': [],
             'SLUGIFY_SOURCE': 'basename'
         }
-        settings = read_settings(path=None, override={**implicit_settings, **settings})
+        implicit_settings.update(settings)
+        settings = read_settings(path=None, override=implicit_settings)
         pelican = Pelican(settings=settings)
         pelican.run()
 
index 7264c1ceb9d979c2dd780d8ede071718f71c2822..349dedd86c33ad67abfd1909e14c3942aa8ab22b 100644 (file)
@@ -30,7 +30,8 @@ class MinimalTestCase(unittest.TestCase):
             'ARTICLE_EXCLUDES': [os.path.join(self.path, 'output')],
             'FEED_ALL_ATOM': None, # Don't render feeds, we're not testing them *ever*
         }
-        settings = read_settings(path=None, override={**implicit_settings, **settings})
+        implicit_settings.update(settings)
+        settings = read_settings(path=None, override=implicit_settings)
         pelican = Pelican(settings=settings)
         pelican.run()
 
@@ -57,7 +58,8 @@ class BaseTestCase(MinimalTestCase):
             'DIRECT_TEMPLATES': ['index', 'archives'],
             'SLUGIFY_SOURCE': 'basename'
         }
-        MinimalTestCase.run_pelican(self, {**implicit_settings, **settings})
+        implicit_settings.update(settings)
+        MinimalTestCase.run_pelican(self, implicit_settings)
 
 class PageTestCase(BaseTestCase):
     def run_pelican(self, settings):
@@ -69,7 +71,8 @@ class PageTestCase(BaseTestCase):
             'ARTICLE_PATHS': ['articles'], # doesn't exist
             'DIRECT_TEMPLATES': []
         }
-        BaseTestCase.run_pelican(self, {**implicit_settings, **settings})
+        implicit_settings.update(settings)
+        BaseTestCase.run_pelican(self, implicit_settings)
 
 class BlogTestCase(BaseTestCase):
     def run_pelican(self, settings):
@@ -91,4 +94,5 @@ class BlogTestCase(BaseTestCase):
             'AUTHOR_FEED_RSS': None,
             'TRANSLATION_FEED_ATOM': None
         }
-        BaseTestCase.run_pelican(self, {**implicit_settings, **settings})
+        implicit_settings.update(settings)
+        BaseTestCase.run_pelican(self, implicit_settings)