Dear all, I am Indirajith, a new python learner. I am not sure if this is a good way to seek help, if not I am really sorry forgive me.
Introduction: I am involved in an open source project and try to help, improve it. The software consists of backend python which interacts with Docker and mongo DB. In the front end it has GUI/web interface, and REST API. What I like to learn: I would like to know if there is a way to call a specific function or method in the project as to just check wether it works. For ex. I write a function which calls docker API and interacts with a remote docker deamon. In this case I like to test what I wrote is working as intended. But the imports from other modules and circular imports makes it hard to just call a single function or method. I can only build the entire project to test it's working and make use of logger messages. Even by this method, I have a problem, the GUI or the REST API is not fully implemented to support all the features/ functions implemented in the backend, and thus I am struck. Using pythons's unittest/pytest module is the only way to just run when I write new code or modify something? Could you guys suggest or provide pointers to learn how to approach this situation? Thank you & kind regards, Indirajith.
_______________________________________________ Chennaipy mailing list Chennaipy@python.org https://mail.python.org/mailman/listinfo/chennaipy