File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ Examples
7070For logging of the test item flow to Report Portal, please, use the python
7171logging handler provided by plugin like bellow:
7272in conftest.py:
73+ 
7374.. code-block :: python 
7475
7576    @pytest.fixture (scope = " function"  ) 
@@ -88,7 +89,9 @@ in conftest.py:
8889        #  Add handler to the logger. 
8990        logger.addHandler(rp_handler) 
9091        return  logger 
92+ 
9193 in tests:
94+ 
9295.. code-block :: python 
9396
9497    #  In this case only INFO messages will be sent to the Report Portal. 
Original file line number Diff line number Diff line change 44
55
66def  read_file (fname ):
7-     return  open (os .path .join (os .path .dirname (__file__ ), fname )).read ()
7+     with  open (os .path .join (os .path .dirname (__file__ ), fname )) as  f :
8+         return  f .read ()
89
910
10- version  =  '1.0.1 ' 
11- tar_url  =  'https://github.com/reportportal/agent-python-pytest/tarball/1.0.1 ' 
11+ version  =  '1.0.3 ' 
12+ tar_url  =  'https://github.com/reportportal/agent-python-pytest/tarball/1.0.3 ' 
1213
1314
1415requirements  =  [
@@ -23,7 +24,7 @@ def read_file(fname):
2324    name = 'pytest-reportportal' ,
2425    version = version ,
2526    description = 'Agent for Reporting results of tests to the Report Portal' ,
26-     long_description = read_file ('README.rst' )  +   ' \n \n '  ,
27+     long_description = read_file ('README.rst' ),
2728    author = 'Pavel Papou' ,
28292930    url = 'https://github.com/reportportal/agent-python-pytest' ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments