Tag archives: test

RSS feed of test

subprocess.Popen aped

Published July 30, 2016 in Development, Tests and quality - Last update on July 30, 2016.

Lately, I worked on Django DBBackup, I was remaking the database command system: classes allowing launching of backup or restore commands through subprocess.Popen. There was no unit tests and major part of them are based on command line but contrary to what I though mock out Popen took me a some time.

Continue reading

My tox environment

Published Nov. 7, 2015 in Tests and quality - Last update on Nov. 18, 2015.

I have long refused to use tox in my Python projects, I though to test code against multiple version Python was a task which should be made by CI tools. After contribute to several projects, I learned to appreciate it when I want to test code with different aspects. I was wrong and for me ...

Continue reading

Maybe I should test tests ?

Published Oct. 19, 2015 in Development - Last update on Oct. 19, 2015.

Every one has already test a big sized app realizes he must write his own test framework for make clear tests with easy reading and usage. For example, Django has its own test framework, inherited from unittest, for ease tests for models, views, mails and more. Even with Django I sometimes need to create modules ...

Continue reading