Helpers. This functions are not required for competitors but was developed to prepare the dataset for the competition.

ensure[source]

ensure(p, msg:str=None)

Ensures that p value is True

ensure_equal[source]

ensure_equal(x, y, msg:str=None)

Ensures that two objects are equal

ensure_exists[source]

ensure_exists(f:Path, msg:str=None)

Ensures that path exists

from pytest import raises

with raises(ValueError) as e:
    ensure_equal("a", 2)

ensure_equal("a", "a")

fix_readme[source]

fix_readme(file_path:"path to README.md file", verbose:""=False)