Apr-27-2025, 01:30 PM
Hello,
I have just cloned a Git hub repo given here
But there is something I don't quite understand.
I have opened this project using VS Code with option Open Folder, and then I navigated to the cloned folder called pyads.
I tried to run tests, specifically test_symbol.py but I was not able to, because of the Module Not Found error on this line:
Somehow VS code does not see this, even though there is a tests folder in the project.
Also, I noticed that my Pylint is complaining about the fact that create_notification_struct was never used and indeed after I delete whole line, I can run this .py file from the VS Code with Ctrl+F5, and all 29 tests are OK.
Also there is a complaint that pointer is not used in the line:
So my question is: Are these imports were really unnecessary, or they are needed, but I (and Pylint) don't see it where.
Thanks
I have just cloned a Git hub repo given here
But there is something I don't quite understand.
I have opened this project using VS Code with option Open Folder, and then I navigated to the cloned folder called pyads.
I tried to run tests, specifically test_symbol.py but I was not able to, because of the Module Not Found error on this line:
Quote:from tests.test_connection_class import create_notification_struct
Somehow VS code does not see this, even though there is a tests folder in the project.
Also, I noticed that my Pylint is complaining about the fact that create_notification_struct was never used and indeed after I delete whole line, I can run this .py file from the VS Code with Ctrl+F5, and all 29 tests are OK.
Also there is a complaint that pointer is not used in the line:
Quote:from ctypes import sizeof
So my question is: Are these imports were really unnecessary, or they are needed, but I (and Pylint) don't see it where.
Thanks