Tag Archives: Python

Mocking with Python!

By Juan Norris, Python Developer at Santex

Here at Santex, we pride ourselves on delivering high quality software, and therefore testing is a big part of our day-to-day development process.

I’m currently working on a Python project that relies heavily on mock for unit tests. A few months ago, some new members who were not familiar with the mock library joined the team. As those of you who have used it may know, mock sometimes can be unintuitive, confusing and lead to “false positives” – passing tests that are not really testing anything – but it is also very useful and powerful.

So we found ourselves in the need of a way to explain this library a little bit, and that is why these slides were created.

We started with an introduction to what mock is and why should you use it. The slides are meant to be both a starting point and some best practices, because they explain the most important classes and helpers in the library, as well as how/when to use them and the common pitfalls you may run into.

Although there is not a lot of written information and this material is composed mostly of code examples, I hope this can get you started with Mocking in Python!

See Mocking in Python Presentation!

About Juan Norris. He is a Python/Django developer with experience in JavaScript (Jquery, AJAX), MySQL and PostgreSQL. Juan is continuously learning and training to investigate new technologies.

LinC: a simple screen grabber tool for Linux

By Maximiliano Sbrocca

I currently work on a project that uses Techsmith Jing as a Corporate Tool. Jing is used to create videos for demos and to reproduce bugs on tracking tools among other things. However, Jing has one big problem: it can only be run on MAC and Windows systems. For that reason, creating a video for a demo was a tough task for co-workers with Linux stations.

After some research, I realized that Techsmith had never planned the Linux migration of Jing. After exploring different tools with the same features that Jing offers in the market, I could see that none of them fulfilled my expectations. I suggested to one of my coworkers, “What if we create a Jing Linux version using Python?” He agreed and we picked up the challenge and started the development process of LinC.

Continue reading