Skip to content

Move Python files to an src/ folder.#79

Open
sergeihychko wants to merge 2 commits intotalkiq:mainfrom
sergeihychko:main
Open

Move Python files to an src/ folder.#79
sergeihychko wants to merge 2 commits intotalkiq:mainfrom
sergeihychko:main

Conversation

@sergeihychko
Copy link

No description provided.

@sergeihychko
Copy link
Author

Greetings, I had actually worked on this issue, two months ago, and just realized that I hadn't ever moved the code up. I guess comping back to something later, caused some issues. Which I'm not experiencing on my local copy.

@KevinGDialpad
Copy link
Contributor

Thanks for sharing your changes here!

I see that the tests are complaining:

______________ ERROR collecting tests/test_content_formatting.py _______________
ImportError while importing test module '/root/project/tests/test_content_formatting.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_content_formatting.py:10: in <module>
    from src.content_converter import ContentConverter
E   ModuleNotFoundError: No module named 'src'

We need to teach pytest to find the source files. Probably by adding src/ to the PYTHONPATH?

I don't have a lot of time to work on this right now, but will come back to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants