Closed vsysoev closed 1 year ago
In tests:
from testtools import recognizeText, findFuzzyText, findRegExpText
Functions recognizeText, findFuzzyText, findRegExpText never be found in package testtools (link to api)
I believe this testtools are custom module witch does not present in this repo. If this a thing, please commit this module to issue1 branch
testtools is mine internal lib. This is why i want to rename it to pymagic-autogui, for example. Feel free to propose new name of library :)
Do I need to include tests in this package? I can't run tests without your testtools.
Also I renamed package to pymagic_autogui
Do I need to include tests in this package? I can't run tests without your testtools.
Test should import pymagic-autogui. These tests looks very outdated and should be refactored. Need to add tests for all exported function. You can use TDD-like approach for tests.
@n3z0xx please specify the source which you use to build setup.py file. Is this https://docs.python.org/3/distutils/setupscript.html ? Looks like this is pretty old approach. "Legacy version" makes me feel this is outdated. 3.11.1 Documentation » Distributing Python Modules (Legacy version) » 2. Writing the Setup Script
Looks like we need to use https://packaging.python.org/en/latest/tutorials/packaging-projects/
How to test modules in development https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html
This issue with not found pygats.pygats was due to necessary to run:
pip install --editable .
Learn and prepare infrastructure for module based on information https://docs.python.org/3/tutorial/modules.html