@@ -116,6 +116,32 @@ def test_simple_build_feed_length(self):
116116
117117 self .assertEqual (len (feed_parsed .entries ), 3 )
118118
119+ def test_simple_build_item_length_unlimited (self ):
120+ with tempfile .TemporaryDirectory () as tmpdirname :
121+ cli_result = self .build_docs_setup (
122+ testproject_path = "docs" ,
123+ mkdocs_yml_filepath = Path (
124+ "tests/fixtures/mkdocs_item_length_unlimited.yml"
125+ ),
126+ output_path = tmpdirname ,
127+ strict = True ,
128+ )
129+ if cli_result .exception is not None :
130+ e = cli_result .exception
131+ logger .debug (format_exception (type (e ), e , e .__traceback__ ))
132+
133+ self .assertEqual (cli_result .exit_code , 0 )
134+ self .assertIsNone (cli_result .exception )
135+
136+ # created items
137+ feed_parsed = feedparser .parse (Path (tmpdirname ) / "feed_rss_created.xml" )
138+ self .assertEqual (feed_parsed .bozo , 0 )
139+
140+ for item in feed_parsed .entries :
141+ print (item .title , len (item .description ))
142+ if item .title not in ("Page without meta with short text" ,):
143+ self .assertGreaterEqual (len (item .description ), 150 )
144+
119145 def test_rss_feed_validation (self ):
120146 with tempfile .TemporaryDirectory () as tmpdirname :
121147 cli_result = self .build_docs_setup (
0 commit comments