From 19c9eba135afc9d268da123af5f12f9d1508de2c Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Thu, 4 Aug 2022 23:08:43 -0500 Subject: [PATCH] Fix in test --- docs/source/conf.py | 2 ++ docs/source/index.rst | 3 +++ source/easymacro.py | 3 ++- source/test_easymacro.py | 2 -- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 40ae94e..3219587 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -54,3 +54,5 @@ html_theme = 'sphinx_book_theme' # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] + +autosummary_generate = True diff --git a/docs/source/index.rst b/docs/source/index.rst index 8856ef2..556d70e 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -30,6 +30,9 @@ You can used **easymacro** with any extension or directly in your macros. documents calc +.. ~ .. automodule:: easymacro +.. ~ :members: + Indices and tables ================== diff --git a/source/easymacro.py b/source/easymacro.py index 1513040..fb1519f 100644 --- a/source/easymacro.py +++ b/source/easymacro.py @@ -4128,7 +4128,8 @@ class LODocuments(): } # ~ BASE: 'com.sun.star.sdb.DocumentDataSource', - _desktop = LOMain.desktop + def __init__(self): + self._desktop = LOMain.desktop def __len__(self): # ~ len(self._desktop.Components) diff --git a/source/test_easymacro.py b/source/test_easymacro.py index e63db0d..b7df332 100644 --- a/source/test_easymacro.py +++ b/source/test_easymacro.py @@ -114,6 +114,4 @@ class TestVars(BaseTest): if __name__ == '__main__': - server = app.LOServer() unittest.main(exit=False) - server.stop()