Skip to content

Tests🔗

berhoel.odf.tests.conftest 🔗

Common settiongs for testing berhoel.odf.

Functions:

  • base_path –

    Return path to project base.

  • data1 –

    Return path to first sample data file.

  • data_path –

    Return path to data directory.

Functions🔗

berhoel.odf.tests.conftest.base_path 🔗

base_path()

Return path to project base.

Source code in src/berhoel/odf/tests/conftest.py
@pytest.fixture()
def base_path():
    """Return path to project base."""
    return Path(__file__).parents[4]

berhoel.odf.tests.conftest.data1 🔗

data1(data_path)

Return path to first sample data file.

Source code in src/berhoel/odf/tests/conftest.py
@pytest.fixture()
def data1(data_path):
    """Return path to first sample data file."""
    return data_path / "sample1.ods"

berhoel.odf.tests.conftest.data_path 🔗

data_path(base_path)

Return path to data directory.

Source code in src/berhoel/odf/tests/conftest.py
@pytest.fixture()
def data_path(base_path):
    """Return path to data directory."""
    return base_path / "data"

berhoel.odf.tests.test_odf_base 🔗

Testing base functionalities of berhoel.odf library.

Classes🔗

berhoel.odf.tests.test_ods 🔗

Testing accessing ods files.

Classes🔗