[Tutor] how to redirect input from pipe

2017-03-22 Thread Yosef Levy
Hello All, I am running with Python 2.7 I have to run script that could have get arguments in two ways: 1. argument + file name. 2. argument + input from pipe. example for 1: ./my_script.py -t 1,2,3 file_name.txt example for 2: grep snd file_name.txt | ./my_script.py -t 1,2,3 I am using "parse_

Re: [Tutor] how to redirect input from pipe

2017-03-30 Thread Yosef Levy
Thank you, it was very helpful. בתאריך 23 במרץ 2017 02:39,‏ "Peter Otten" <__pete...@web.de> כתב: > Yosef Levy wrote: > > > Hello All, > > > > I am running with Python 2.7 > > I have to run script that could have get arguments in two ways: > &

[Tutor] redirecting testing output to file, using two different options

2018-05-16 Thread Yosef Levy
Hello All, I have testing environment. Code is written under Python 2.6. testing output should be redirected to log file. I am using two different file handling, in order to log output: 1. logging module: import unittest2 import logging import sys class TestMyEnvClass (unittest2.TestCase):

Re: [Tutor] redirecting testing output to file, using two different options

2018-05-17 Thread Yosef Levy
As I understand from documentation reading, pytest does not support advanced file handling like logging module.. for example: log file rotate, limit file size etc. I am using OS Centos6 2018-05-16 21:48 GMT+03:00 Mats Wichmann : > On 05/16/2018 02:53 AM, Yosef Levy wrote: > >