From 7e2c79b17dcdbd283231defc4361789dcba29ccd Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Sat, 30 Dec 2023 12:24:22 +0000 Subject: [PATCH] Cut fillmurray --- docs/index.md | 11 +---------- greeking/fillmurray.py | 15 --------------- greeking/tests.py | 13 ------------- 3 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 greeking/fillmurray.py diff --git a/docs/index.md b/docs/index.md index 41e4507..645f6c4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -60,14 +60,6 @@ One provider is [placekitten.com](https://placekitten.com/) -Another is [fillmurray.com](http://www.fillmurray.com/). - -```html+django -{% fillmurray 600 200 %} -``` - - - ### Pangrams A pangram is a phrase that includes every letter of an alphabet. It is useful when testing font implementations. @@ -111,8 +103,7 @@ Here is the complete list of available languages. ### L.A. Times ipsum -A set of objects with boilerplate text, URLs and other attributes common to news. Used by the Los Angeles Times Data Desk to greek -its documentation and pages under development. +A set of objects with boilerplate text, URLs and other attributes common to news. The library can generate ``Story``, ``Image``, ``RelatedItem`` and ``Quote`` objects. diff --git a/greeking/fillmurray.py b/greeking/fillmurray.py deleted file mode 100644 index b19dd2b..0000000 --- a/greeking/fillmurray.py +++ /dev/null @@ -1,15 +0,0 @@ -""" -Utility for generating placeholder Bill Murray images -""" -URL = "http://www.fillmurray.com/%(width)s/%(height)s/" - - -def get_url(width, height, color=True): - """ - Craft the URL for a placekitten image. - - By default they are in color. To retrieve a grayscale image, set - the color kwarg to False. - """ - d = dict(width=width, height=height) - return URL % d diff --git a/greeking/tests.py b/greeking/tests.py index aa8a38c..550c9b1 100644 --- a/greeking/tests.py +++ b/greeking/tests.py @@ -70,19 +70,6 @@ def testGreekComments(self): for k, v in list(comment_dict.items()): self.assertEqual(v, match[k]) - def testFillMuray(self): - """ - Tests the tag for pulling Bill Murray images. - """ - t1 = "{% load greeking_tags %}{% fillmurray 200 200 %}" - ctx, out = self.render(t1) - self.assertEqual(out, '') - self.assertRaises( - TemplateSyntaxError, - self.render, - "{% load greeking_tags %}{% fillmurray foobar %}", - ) - def testPlaceKittens(self): """ Tests the tag for pulling placekitten images.