OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | DeriveTest |
class | DummyStream |
class | TestBase |
Functions | |
def | skip_on_travis_ci (func) |
def | with_rw_directory (func) |
def | with_packs_rw (func) |
def | fixture_path (relapath='') |
def | copy_files_globbed (source_glob, target_dir, hard_link_ok=False) |
def | make_bytes (size_in_bytes, randomize=False) |
def | make_object (type, data) |
def | make_memory_file (size_in_bytes, randomize=False) |
def gitdb.test.lib.copy_files_globbed | ( | source_glob, | |
target_dir, | |||
hard_link_ok = False |
|||
) |
Copy all files found according to the given source glob into the target directory :param hard_link_ok: if True, hard links will be created if possible. Otherwise the files will be copied
def gitdb.test.lib.fixture_path | ( | relapath = '' | ) |
:return: absolute path into the fixture directory :param relapath: relative path into the fixtures directory, or '' to obtain the fixture directory itself
def gitdb.test.lib.make_bytes | ( | size_in_bytes, | |
randomize = False |
|||
) |
:return: string with given size in bytes :param randomize: try to produce a very random stream
def gitdb.test.lib.make_memory_file | ( | size_in_bytes, | |
randomize = False |
|||
) |
:return: tuple(size_of_stream, stream) :param randomize: try to produce a very random stream
def gitdb.test.lib.make_object | ( | type, | |
data | |||
) |
:return: bytes resembling an uncompressed object
def gitdb.test.lib.skip_on_travis_ci | ( | func | ) |
All tests decorated with this one will raise SkipTest when run on travis ci. Use it to workaround difficult to solve issues NOTE: copied from bcore (https://github.com/Byron/bcore)
def gitdb.test.lib.with_packs_rw | ( | func | ) |
Function that provides a path into which the packs for testing should be copied. Will pass on the path to the actual function afterwards
def gitdb.test.lib.with_rw_directory | ( | func | ) |
Create a temporary directory which can be written to, remove it if the test succeeds, but leave it otherwise to aid additional debugging