Source code for berhoel.django.media_ooimport.console.test.test_helper

#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Testing berhoel.django.media_ooimport.console._helper.
"""
# Third party libraries.
import pytest

from berhoel.django.media_ooimport.console import _helper

__date__ = "2020/05/03 18:26:29 hoel"
__author__ = "Berthold Höllmann"
__copyright__ = "Copyright © 2020 by Berthold Höllmann"
__credits__ = ["Berthold Höllmann"]
__maintainer__ = "Berthold Höllmann"
__email__ = "berhoel@gmail.com"








[docs]@pytest.mark.parametrize("test_input, val_ref", [["of:=7.3", "7.3"]]) def test_formula_float_val(test_input, val_ref): match = _helper.FORMULA_FLOAT_VAL.match(test_input) val = match.group("val") assert val == val_ref
# Local Variables: # mode: python # compile-command: "poetry run tox" # time-stamp-pattern: "30/__date__ = \"%:y/%02m/%02d %02H:%02M:%02S %u\"" # End: