Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
_test_utils.py File Reference

Data Structures

class  TestCase
 

Namespaces

namespace  tests
 
namespace  tests._test_utils
 

Functions

 get_temp_compressed_name (filename)
 
 get_temp_uncompressed_name (filename)
 
 bind_method_args (method, *args, **kwargs)
 
 generate_test_methods (test_case_class, for_decompression=False, variants=None)
 

Variables

 project_dir = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
 
 src_dir = os.path.join(project_dir, 'python')
 
 test_dir = os.path.join(project_dir, 'tests')
 
str python_exe = sys.executable or 'python'
 
 bro_path = os.path.join(src_dir, 'bro.py')
 
list BRO_ARGS = [python_exe, bro_path]
 
str platform_lib_name
 
 build_dir = os.path.join(project_dir, 'bin', platform_lib_name)
 
 TEST_ENV = os.environ.copy()
 
 TESTDATA_DIR = os.path.join(test_dir, 'testdata')
 
list TESTDATA_FILES
 
list TESTDATA_PATHS = [os.path.join(TESTDATA_DIR, f) for f in TESTDATA_FILES]
 
 TESTDATA_PATHS_FOR_DECOMPRESSION
 
 TEMP_DIR = tempfile.mkdtemp()