def test_env_read_docs():
 def on_env_read_docs_1(app, env, docnames):
  pass
 app.connect('env-before-read-docs', on_env_read_docs_1)
 read_docnames = env.update(app.config, app.srcdir, app.doctreedir, app)
 assert ((len(read_docnames) > 2) and (read_docnames == sorted(read_docnames)))
 def on_env_read_docs_2(app, env, docnames):
  docnames.remove('images')
 app.connect('env-before-read-docs', on_env_read_docs_2)
 read_docnames = env.update(app.config, app.srcdir, app.doctreedir, app)
 assert (len(read_docnames) == 2)

def test_env_read_docs ( ) : def on_env_read_docs_1 ( app , env , docnames ) : pass app . connect ( 'env-before-read-docs' , on_env_read_docs_1 ) read_docnames = env . update ( app . config , app . srcdir , app . doctreedir , app ) assert ( ( len ( read_docnames ) > 2 ) and ( read_docnames == sorted ( read_docnames ) ) ) def on_env_read_docs_2 ( app , env , docnames ) : docnames . remove ( 'images' ) app . connect ( 'env-before-read-docs' , on_env_read_docs_2 ) read_docnames = env . update ( app . config , app . srcdir , app . doctreedir , app ) assert ( len ( read_docnames ) == 2 )
by default .