Modify test commands in README.md#313
Open
security-companion wants to merge 1 commit intoninoseki:masterfrom
Open
Modify test commands in README.md#313security-companion wants to merge 1 commit intoninoseki:masterfrom
security-companion wants to merge 1 commit intoninoseki:masterfrom
Conversation
Updated test commands for backend and frontend sections.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @ninoseki
thanks for adapting the readme, however these commands do not work for me in VS Code.
If I adapt them they run.
However when trying to run the pytest I get some errors.
Also if I create a virtualenv with uv venv and start it with .venv\Scripts\activate (in Windows) and run uv run pytest afterwards I get the same errors.
Any ideas?
Also with which command do you start the local python webserver?
Greetings
security-companion
(eml_analyzer) C:\Users\Joachim\Documents\Programmierprojekte\eml_analyzer>uv run pytest
Installed 132 packages in 4.49s
ImportError while loading conftest 'C:\Users\Joachim\Documents\Programmierprojekte\eml_analyzer\tests\conftest.py'.
tests\conftest.py:10: in
from backend import clients, factories, schemas
backend_init_.py:1: in
from .clients.emailrep import EmailRep # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend\clients_init_.py:3: in
from .emailrep import EmailRep # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend\clients\emailrep.py:4: in
from backend import schemas
backend\schemas_init_.py:3: in
from .payload import FilePayload, Payload # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend\schemas\payload.py:3: in
from backend.validator import is_eml_or_msg_file
backend\validator.py:1: in
import magic
.venv\Lib\site-packages\magic_init_.py:209: in
libmagic = loader.load_lib()
^^^^^^^^^^^^^^^^^
.venv\Lib\site-packages\magic\loader.py:49: in load_lib
raise ImportError('failed to find libmagic. Check your installation')
E ImportError: failed to find libmagic. Check your installation