Category: All

Hardwork v/s Smartwork

Hardwork v/s Smartwork

Hi all! When we explain someone about productivity, these 2 words hard-work and smart-work inevitably come into consideration. Did you ever think about it? I mean, what “smart-work” really is? How is it different from “hard work”? Keep the answer in your mind and keep reading.

Continue reading “Hardwork v/s Smartwork”

Advertisements
What is a makefile?

What is a makefile?

Hello everyone! Ever wanted to write a shell script to automate a task in your project? For example, after cloning the project, do X task and then manipulate Y file, etc. For the same thing before, I used to write shell script files. So that, after cloning the project a user may run those scripts and get the work done. But better than a shell script it is a good idea to add a makefile. Wondering? Keep reading.

Continue reading “What is a makefile?”

Testing with unittest.mock

Testing with unittest.mock

Hello! Just 10 days back, there was a time when I tweet this.

While I always found it difficult, some people say writing mock test is super easy. I think it’s time for me to code more modular.

After a week of making the tweet, I set myself to read the official documentation with patience. The more I read, the more I started liking the tool. In the end, I understand people were right in saying that “mock tests are easy”. Below is a quick overview of what I could understand of writing mock test cases.

Continue reading “Testing with unittest.mock”