Skip to content

Add tests for missing modules - #1523

Merged
chris34 merged 11 commits into
inyokaproject:stagingfrom
chris34:tests
Nov 1, 2026
Merged

chris34 merged 11 commits into
inyokaproject:stagingfrom
chris34:tests

Conversation

@chris34

@chris34 chris34 commented Nov 1, 2026

Copy link
Copy Markdown
Member

see commit messages for details

Reformat tests & code for renameuser command.
files starting with dot not an issue due to form validation of django
Mostly, removed modules were still linked in autodoc.

```
DEBUG:urllib3.connectionpool: https://docs.djangoproject.com:443 "GET /en/5.2/objects.inv HTTP/1.1" 200 108141
intersphinx inventory has moved: https://docs.djangoproject.com/en/5.2/_objects/ -> https://docs.djangoproject.com/en/5.2/objects.inv

WARNING: autodoc: failed to import 'macros' from module 'inyoka.forum'; the following exception was raised:
Traceback (most recent call last):
  File "/home/runner/venv/lib/python3.14/site-packages/sphinx/ext/autodoc/_dynamic/_importer.py", line 131, in _import_from_module_and_path
    module = _import_module(module_name, try_reload=True)
  File "/home/runner/venv/lib/python3.14/site-packages/sphinx/ext/autodoc/_dynamic/_importer.py", line 218, in _import_module
    raise ModuleNotFoundError(msg, name=modname)  # NoQA: TRY301
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'inyoka.forum.macros'
 [autodoc.import_object]

WARNING: autodoc: failed to import 'services' from module 'inyoka.ikhaya'; the following exception was raised:
Traceback (most recent call last):
  File "/home/runner/venv/lib/python3.14/site-packages/sphinx/ext/autodoc/_dynamic/_importer.py", line 131, in _import_from_module_and_path
    module = _import_module(module_name, try_reload=True)
  File "/home/runner/venv/lib/python3.14/site-packages/sphinx/ext/autodoc/_dynamic/_importer.py", line 218, in _import_module
    raise ModuleNotFoundError(msg, name=modname)  # NoQA: TRY301
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'inyoka.ikhaya.services'
 [autodoc.import_object]

WARNING: autodoc: failed to import 'filters' from module 'inyoka.portal'; the following exception was raised:
Traceback (most recent call last):
  File "/home/runner/venv/lib/python3.14/site-packages/sphinx/ext/autodoc/_dynamic/_importer.py", line 131, in _import_from_module_and_path
    module = _import_module(module_name, try_reload=True)
  File "/home/runner/venv/lib/python3.14/site-packages/sphinx/ext/autodoc/_dynamic/_importer.py", line 218, in _import_module
    raise ModuleNotFoundError(msg, name=modname)  # NoQA: TRY301
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'inyoka.portal.filters'
 [autodoc.import_object]

/home/runner/work/inyoka-pub/inyoka-pub/docs/../inyoka/utils/forms.py:docstring of inyoka.utils.forms.validate_file_extension:18: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]

/home/runner/work/inyoka-pub/inyoka-pub/docs/releases/0.x.rst:125: WARNING: Title underline too short.
1.52.10 (2026-07-22)
=================== [docutils]

```
@chris34
chris34 merged commit b511389 into inyokaproject:staging Nov 1, 2026
17 checks passed
@chris34
chris34 deleted the tests branch November 1, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant